Search code examples
intellij-idea

Function keys not working on MacOs with external Mac keyboard?


Example: according to the menu, the keyboard shortcut for Find Usages should be option F7.

When I use the built-in keyboard, and actually press fn + Shift + 7 ... it works as expected.

When I use my external Magic 2 Apple keyboard, and press option + F7 ... nothing happens?!

What am I doing wrong?

Update: I just figured that my external keyboard has a fn key as well. So when I press fn + option + F7 that works. But that is super cumbersome (the fn key is to the right of backspace, it is hard to press that together with any function key).


Solution

  • Change the behavior of function keys on your Mac document is probably what you are looking for:

    If you prefer the top row of keys to always behave as standard function keys without holding the Fn key:

    1. Choose System Preferences from the Apple menu.
    2. Click Keyboard.
    3. Click the Keyboard tab if it's not already highlighted.
    4. Select "Use all F1, F2, etc. keys as standard function keys"