h1

Using F-Keys in Mac OS X

January 31, 2007

F-Keys are used for special operating system wide functionality in Mac OS X. In this article we’ll discover how to take control of the Mac OS X F-Keys and use them in applications that map keyboard shortcuts to F-Keys.
By default in Mac OS X the F-Keys provide operating system wide functionality. For instance, F3 and F4 handle volume. F9, F10 and F11 are used for Exposé’s window tricks. That’s nice for being able to get at those features from within any application, but it really messes things up if an application uses F-Keys as a part of their standard keyboard shortcuts. NetBeans is a perfect example. Shift-Command-F4 is the keyboard shortcut for closing all documents, but on Mac OS X, F4 turns down the volume – not the desired output.
The trick on Mac OS X is that little fn key in the corner of your keyboard and a single setting under System Preferences -> Keyboard & Mouse. By default the F-Keys do Mac OS X things. If you want them to do application specific things you can hold down the fn key and then press the desired F-Key. If you’d like to reverse this behavior, check the box next to “Use the F1-F12 keys to control software features.” With that box checked everything is reversed. The F-Keys will do application specific things and to access the Mac OS X features, you will need to hold down the fn key while you press the desired F-Key. Pick your poison. In either case you have all of the functionality, it’s just a matter of which one you have to hold the extra key for.

Keyboard And Mouse-1

Joshua Smith

Resources

Amazon Book: Mac OS X for Java Geeks
Amazon Book: Mac OS X Panther Hacks
Using NetBeans on Mac OS X
Marc Liyanage Blog: NetBeans Mac Customization
Marc Liyanage Blog: More NetBeans on Mac OS X

Technorati Tags: , ,

12 comments

  1. Hi,
    the solution you describe here doesn’t work on my MacBook Pro and Netbeans 6.*
    I had tried that before a long time, even with netbeans 5.

    You need something else.

    I will find it and tell you about it.

    cheers


  2. More specifically for key F9 to F12. The rest of the F buttons work fine as they were supposed to do inside Netbeans.


  3. Thank you for putting this out. I couldn’t disable the extended function keys by turning them off in the Keyboard Shortcuts tab. I was about to discard the Apple KB and buy a third party one.


  4. I also needed to change settings on the “Keyboard Shortcuts” tab.

    F9 through to F12 are in use by the “Dock, Expose and Dashboard” shortcuts. Disable them, or set different keys for that functionality and you’ll have function keys F9 -> F12 available for applications.


  5. thank you for posting. This was very helpful.


  6. Thanks a bunch for the helpful website. You’ve saved me a whole mess of trouble. I’ve been googling for two days trying to solve this problem. Thanks again. God Bless.


  7. I’ve never posted on anyone’s board, but I’ve needed this info for so long, but never bothered to look it up. THANK YOU SO MUCH!


  8. Peopple with Mac desktops don’t need to use the fn modifier key to access the F-key functions as the keys serve no dual purpose.


  9. Cool thanks for the info. It was helpful in operating a old school game that ran on DOS or something like that. Of course this is on my Intel iMac… (emulation program used…)

    THanks a lot. Helpful.

    Kyle


  10. Do you know how to switch them when I’m booted on the PC side of my Mac? I need to use the F keys, but I have to press “fn” in order to make them work in games I’m playing. Right now, when I press them, the brightness or volume controls activate.


  11. I found the answer to using the Function keys while using Bootcamp in Windows XP.

    While running Windows, in the Bootcamp Control Panel item found in the lower right tray, there is an option to configure the keyboard.


  12. Thanks for the post, Eclipse debugging F7 now works correctly :)



Leave a Comment