pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.58k stars 834 forks source link

function keys are not working properly when Karabiner is enabled #3000

Open leeway00 opened 2 years ago

leeway00 commented 2 years ago

Hi, I am using Macbook Pro 16 (M1 pro)

Function keys in F1~F12 keys are not working properly.y when Karabiner is enabled. For example, F12 only works as F12 even if I press it with Fn key. (It is volume increase key) I checked Karabiner settings but I didn't make any changes regarding function keys. This works fine if I disable Karabiner.

Please look up to this bug.

03k64serenity commented 2 years ago

What are the bottom two settings related to the function keys in System Preferences >> Keyboard >> Keyboard Tab set to?

What are the settings in Karabiner-Elements >> Function Keys tab set to?

leeway00 commented 2 years ago

@03k64serenity Both settings are unchecked. So the special features should work when I press Fn + F1~12. But it's not working. Whether pressing Fn together or not, it only run as standard function keys.

joelash commented 2 years ago

I'm having the problem where I check the box to use function keys as standard function keys in Karabiner-Elements and it won't save, it's always resetting to unchecked. Is this related? This started happening after an update last night.

wAuner commented 2 years ago

I'm having the same issue. fn key does not seem to have any effect.

TheFruxz commented 2 years ago

Can confirm, having the same issue. An opt-out option for this modification should be available! I'm currently using https://github.com/Pyroh/Fluor to adaptively change the behavior of my function keys, but with Karabiner enabled at the same time (to having some other keys modified) and this 'bug' destroying my function keys, I cannot use Karabiner in production.

denis-chmel commented 1 year ago

Plus one here. I like karabiner a lot, but switched to mbp m1 with (finally) f-keys and have to close karabiner to use them (for volume etc). Is there any other remapper that does only remap what is asked to?

Shelagh-Lewins commented 1 year ago

I set the "Use ... as standard function keys" AND remapped the function keys; I am not sure which did the trick but my function keys are now working on a MacBook Pro, M1, Monterey. It seems daft to have the function keys remapped by default though...I agree, Karabiner ought not to do any mapping unless requested.

Screenshot 2022-12-09 at 14 20 00
vgorloff commented 1 year ago

In my case (mbp 16" 2019 with touch bar) the functional keys were not working properly until I checked checkbox "Devices-> TouchBarUserDevice (Apple Inc.) -> Modify Events"

Screenshot 2022-12-13 at 19 46 30

Other settings:

Screenshot 2022-12-13 at 19 52 13 Screenshot 2022-12-13 at 19 52 18
tnmygrwl commented 1 year ago

I am using a Keychron K2 Pro with an MBP 14" 2023 the the fn key changes seem to have no effect. I am trying to map it to the option key. Any updates on this issue?

jerrydw commented 1 year ago

After a lengthy search I found this solution works for me: https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn

I wonder if the issue is due to I have a second input method in my case. So it turns out that when I have 2 input methods, fn key becomes problematic, especially along with Karabiner activated. How so? fn key is also the globe key on the internal keyboard. Pressing fn key quickly (as quick as I press any other key) would switch input method, while a longer press would function as normal fn key. << this, I think is causing a mess to Karabiner.

iamtodor commented 11 months ago

After a lengthy search I found this solution works for me: https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn

I wonder if the issue is due to I have a second input method in my case. So it turns out that when I have 2 input methods, fn key becomes problematic, especially along with Karabiner activated. How so? fn key is also the globe key on the internal keyboard. Pressing fn key quickly (as quick as I press any other key) would switch input method, while a longer press would function as normal fn key. << this, I think is causing a mess to Karabiner.

Probably, in this case, the F1-12 buttons itself wouldn't work, right? I.e., if hotkey is something like CMD+Shift+F3 would it work?

ifaiw commented 3 months ago

I'm using a 16-inch MacBook Pro M3 with physical F keys. What eventually worked, not sure if all this is necessary except the last part:

  1. Switch the "Press key to Do Nothing" in Mac Keyboard settings.
  2. Turn on "Use all F1, F2, etc. keys as standard function keys" in Karabiner
  3. Import settings from https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn
  4. Map the f1, f2, etc. keys in Karabiner to the Media controls I want. With these settings the keys work as F-keys unmodified and as media controls with fn pressed. I didn't map F3-F6 because I don't care about those media controls. Screenshot 2024-06-04 at 7 54 34 AM
WWWzq-01 commented 3 months ago

After a lengthy search I found this solution works for me: https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn

I wonder if the issue is due to I have a second input method in my case. So it turns out that when I have 2 input methods, fn key becomes problematic, especially along with Karabiner activated. How so? fn key is also the globe key on the internal keyboard. Pressing fn key quickly (as quick as I press any other key) would switch input method, while a longer press would function as normal fn key. << this, I think is causing a mess to Karabiner.

could you tell me what rule you have imported?

WWWzq-01 commented 3 months ago

I'm using a 16-inch MacBook Pro M3 with physical F keys. What eventually worked, not sure if all this is necessary except the last part:

  1. Switch the "Press key to Do Nothing" in Mac Keyboard settings.
  2. Turn on "Use all F1, F2, etc. keys as standard function keys" in Karabiner
  3. Import settings from https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn
  4. Map the f1, f2, etc. keys in Karabiner to the Media controls I want. With these settings the keys work as F-keys unmodified and as media controls with fn pressed. I didn't map F3-F6 because I don't care about those media controls.
Screenshot 2024-06-04 at 7 54 34 AM

"Switch the "Press key to Do Nothing" in Mac Keyboard settings." Hi, Could you tell me where the "Switch the 'Press key to Do Nothing'" option is?I can't find it. Besides,could you tell me what rule you have imported?

kcmyang commented 1 month ago

I'm using a 16-inch MacBook Pro M3 with physical F keys. What eventually worked, not sure if all this is necessary except the last part:

  1. Switch the "Press key to Do Nothing" in Mac Keyboard settings.
  2. Turn on "Use all F1, F2, etc. keys as standard function keys" in Karabiner
  3. Import settings from https://ke-complex-modifications.pqrs.org/#standard_function_keys_on_fn
  4. Map the f1, f2, etc. keys in Karabiner to the Media controls I want. With these settings the keys work as F-keys unmodified and as media controls with fn pressed. I didn't map F3-F6 because I don't care about those media controls.
Screenshot 2024-06-04 at 7 54 34 AM

"Switch the "Press key to Do Nothing" in Mac Keyboard settings." Hi, Could you tell me where the "Switch the 'Press key to Do Nothing'" option is?I can't find it. Besides,could you tell me what rule you have imported?

I believe it's this setting: "Press 🌐 key to..."

image

The method works for me without even doing step 3. I think step 2 and 4 are the only truly necessary ones to regain media controls, but if you skip step 1 then you may have the emoji menu popping up all the time.

gsaslis commented 2 weeks ago

In my case the issue was that the https://usevia.app had configured my keychron in a way that karabiner was completely ignored. I managed to fix the issue by remapping the keys through that app. Anything I did in karabiner simply did not take effect.

I would love to know why - and can help further debugging this - if someone would like to provide pointers.

nejmeijer commented 2 weeks ago

Could this be related to #2012?