1

I have this usb keyboard and macOS 10.14.6. :

enter image description here

I'm using the file DefaultKeyBinding.dict to remap several keys on a MacBook Pro. Is there a way to specify that my right Fn key has to be bound to the Option key.

I need this since I'm trying to have an Option key on the bottom right zone of the USB keyboard, mimicking the MacBook Pro keyboard.

I'd prefer not to use external tools.

I don't find Modifier keys settings helpful for function keys:

enter image description here

Using Karabiner event, it seems like keystrokes on Fn keys are not detected by the Mac. Can I fix it?

Allan
  • 101,432
  • https://apple.stackexchange.com/a/331519/313842 https://apple.stackexchange.com/a/228853/313842 https://apple.stackexchange.com/a/94932/313842 – anki Jan 16 '20 at 13:39
  • thank you @ankii once again. Looks like this keyboard is not sending any signal to the mac when i press FN keys. Karabiner's Event Viewer does not detect anything. Nothing to do. :( – floatingpurr Jan 16 '20 at 14:04
  • Further info here: https://github.com/pqrs-org/Karabiner-Elements/issues/999 – floatingpurr Jan 16 '20 at 14:06
  • Doesn’t the Alt Gr key work like option for your purposes? – Tom Gewecke Jan 16 '20 at 14:16
  • Hi @TomGewecke! Yes it does. But I remapped Alt (and Alt Gr) and Windows keys to have the same sequence of keys of a macbook keyboard (e.g., http://osxdaily.com/2018/01/31/use-windows-pc-keyboard-mac-remap-option-command-keys/). Consequently, Fn should "become" option. Looks like it's not possible :( – floatingpurr Jan 16 '20 at 14:19

1 Answers1

2

Using Karabiner event, it seems like keystrokes on Fn keys are not detected by the Mac. Can I fix it?

You can’t remap the Fn key as it’s an internal keyboard modifier and not sent to the OS

See this answer from a similar question for full details.

Basically, if a scan code isn’t sent by the keyboard to be received by the OS (and the Fn code isn’t), nothing can be remapped.

Allan
  • 101,432
  • 1
    This is wrong. MacOS does detect fn key standalone. In order to test it go to Assessbility>Keyboard>Enable Sticky Keys. Then press fn key. – simar Dec 23 '20 at 08:11
  • Yes. In fact, there's an option that allows the fn key to be used to switch the input source. Karabiner EventViewer also detects fn being pressed. – Noel Yap Sep 15 '22 at 22:26