osx - What are the keyboard shortcuts to operate a Mac slider control

22
2013-10
  • doekman

    In the Safari RSS screen, there is a slider (or range) control to change an article's summary length. By pressing TAB a couple of times, it is possible to navigate to this control, without using the mouse.

    Is it also possible, to slide the slider with the keyboard? Thus sliding the knob to the right and left? The volume slider in iTunes can be operated by the arrow-keys, but in Safari's RSS window, these are used to scroll the text if there are any scrollbars...

    Note: in System Preferences, Keyboard (OS X 10.6), Keyboard Shortcuts, I have set Full Keyboard Access to All controls. Otherwise, the TAB key only navigates between text boxes and lists.

  • Answers
  • 8088

    Using Web Inspector (or simply view source) reveals:

    <input id="apple-rss-slider" type="range" min="0" value="29" max="100"
      onmousedown="startScale()" onmouseup="endScale()" 
      oninput="scaleArticles(this.value)" />
    

    The oninput made me hope I could start typing, but it seems it's all mouse events...

    Some HTML5 examples explain how to add additional spin buttons, which can be selected using Option-Tab, followed by Return to press it:

    Input type="range" in Safari

    But lack of keyboard support seems an old WebKit bug: input type range broken for keyboard users.

    The above example looks different in Firefox, and allows for typing a value:

    Input type="range" in Firefox


  • Related Question

    osx - Mac: What's the keyboard shortcut for switching between video mirroring and and extended desktop screens?
  • eed3si9n

    What's the keyboard shortcut for switching between video mirroring and and extended desktop screens? In Display Preference the feature is called "Turn On Mirroring" or "Mirror Displays." It took me some time to discover the keyboard shortcut for this.


  • Related Answers
  • Chealion

    On older laptops (eg. earlier MacBooks, MacBook Pros, Powerbooks, etc.), by default it's simply F7. You will need to press Fn if you have "Use F1, F2, etc. keys as standard function keys" checked off in the Keyboard and Mouse Preference Pane.

    ⌘ - F1 is supposed to work but I've found it quite spotty in terms of whether it worked or not on desktop (eg. iMac, Mac Pro) machines.

  • eed3si9n

    It's ⌘-F1 or ⌘-fn-1, depending on the setting according to Chealion.

    I found this on Mac OS X keyboard shortcuts. It's listed there as "Command-Function-1," but on my current generation (3rd generation?), unibody, MBP, ⌘-F1 is what works for me.

  • Indrek

    For an iMac, it's +Fn+2 or +2, depending on how you configure the use of the Fn keys on your computer. Don't know if they updated this for MacBooks as well.

  • mato

    I had a dead monitor on my iMac and connected it to a spare monitor then turned on Voice Over on boot up. From there used the tab and arrow keys to navigate to the System Prefs > Displays to turn on mirroring.