Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use (cmd|shift|option|ctrl) + Fn with MacBook Pro 2016 with Touch Bar #535

Closed
we11adam opened this issue Jan 4, 2017 · 35 comments
Closed
Labels

Comments

@we11adam
Copy link

we11adam commented Jan 4, 2017

For example, when pressing Shift + F6, my app (WebStorm) acts as if only F6 were pressed and Shift is ignored completely.

Below is my only configuration:

image

@vjpr
Copy link

vjpr commented Jan 12, 2017

I am seeing this behaviour with other modifiers too such as cmd. It breaks a lot of keyboard shortcuts in IntelliJ for me.

On the Function Keys tab, I tried mapping each fn key to fn1-12 and it didn't work. Toggling the Use standard function keys didn't work either.

@keithhan-nsuslab
Copy link

I have same problem. When will be this fixed?

@dstandish
Copy link

dstandish commented May 10, 2017

Checking the 'use all F keys as standard function keys' option seems to allow shift + F to work in programs like intellij. But touchbar functionality is in general broken when you try to use the standard function buttons like expose, brightness after expanding the standard touchbar.

@geoHeil
Copy link

geoHeil commented Jul 3, 2017

Same here. But https://medium.com/@geapi/permanent-function-keys-intellij-macbook-pro-w-touchbar-d6fc78781b90 worked for me.

@chopachom
Copy link

Having the same issue as OP with exactly the same configuration. Modifier keys don't work with function keys. Karabiner-Elements version is 0.91.8 macOS Sierra 10.12.5 (16F73) MacBook Pro (15-inch, 2016)

@kasecato
Copy link

Karabiner-Elements 0.91.8
macOS Sierra 10.12.5
Touch bar

  • Cmd + f7
    • Karabiner-Elements ON
      • f7 + Fn
    • Karabiner-Elements OFF
      • f7 + Cmd + Fn

@lindsaymarkward
Copy link

Same. I tried the link @geoHeil provided, but it just showed the Fn 'keys', and their behaviour was the same, e.g. Shift+F6 causes the action F6 causes... Shift has no effect. Also tried what @dstandish said, but didn't change this.
Any solutions? I only use Karabiner to map my caps lock to back space.

@viniciusmo
Copy link

Same problem here :(

@subicura
Copy link

👍

@Kxrr
Copy link

Kxrr commented Sep 20, 2017

Same issue here, shortcuts like Command + F1 acting like F1 when Karabiner-Elements is up.

@mohammedri
Copy link

Following, cause I have the same issue. Modifiers don't work.

@gAmUssA
Copy link

gAmUssA commented Oct 17, 2017

@tekezo do you have any ETA to look at this?

@KaHa6uc
Copy link

KaHa6uc commented Oct 30, 2017

Same here. I have to go to Menu -> Edit -> Fill... in Photoshop instead of pressing Shift+F5. Most irritating. I had already done what @geoHeil suggested so it's not a fix - it only defines for which applications to show the function keys in the TouchBar by default.

@lindsaymarkward
Copy link

I searched (again) for an alternative solution and found a blog post about remapping keys with the hidutil. Since I only want to remap caps lock to delete/backspace for Colemak, I now have this working without additional software 👍
http://homeowmorphism.com/articles/17/Remap-CapsLock-Backspace-Sierra

@kurguzov
Copy link

kurguzov commented Nov 3, 2017

Thank you very much! Now I don't need to choose between touchbar and Karabiner-Elements!

@KaHa6uc
Copy link

KaHa6uc commented Nov 3, 2017

+1 - hidutil fixed my problem as well. Thank you, @lindsaymarkward

@lindsaymarkward
Copy link

I might add that you should not use macOS keyboard settings to change caps lock to do nothing, or this hidutil solution stops working. I guess the OS doesn't receive the key event or something.

@mbarczak
Copy link

mbarczak commented Nov 6, 2017

👍 for hidutil, also solved my problem. Btw, here : https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-247/IOHIDFamily/IOHIDUsageTables.h , in section KeyboardOrKeypad Page (0x07) can be found all valid usage ID’s. Helped me with kHIDUsage_KeyboardNonUSBackslash

@KaHa6uc
Copy link

KaHa6uc commented Nov 6, 2017

Yes, it took me some time debugging event to realise that I can't understand how § and ± qualify as 0x64, /* Non-US \ or | */
Not to mention that Karabiner's keylogger reported this key as 0xa ...

@mutantcornholio
Copy link

I think, I've got this 'fixed' by enabling this keyboard in settings:
2017-12-10 06-09-31

It's probably the touchbar "keyboard" which sends keys to Mac OS.
Can someone verify this?

@kasecato
Copy link

@mutantcornholio Plus, setting the function keys to the default Touch Bar display and use all Fn keys as as standard, it worked on my IntelliJ.
keybord_functionkeyskarabiner_useallf1f2

@gAmUssA
Copy link

gAmUssA commented Dec 11, 2017

@kasecato @mutantcornholio doesn't work for me

@kasecato
Copy link

kasecato commented Dec 12, 2017

@gAmUssA You can check Karabiner EventViewer like below images.

  • No Product Name ON 👍 (Shift + Cmd + F7)

noproductnameon

  • No Product Name OFF 👎 (Shift + Cmd + F7)

noproductnameoff

@zbstof
Copy link

zbstof commented Dec 12, 2017

Here's a gist that does what I want in hidutil:
https://gist.github.com/zbstof/6cba7d54e105cc5148c8a943d1581cad

@j-martin
Copy link

Confirming @mutantcornholio suggestion worked great! Thanks! Have some TP.

@dan-kez
Copy link

dan-kez commented Dec 19, 2017

confirming @mutantcornholio's solution works as well

@we11adam
Copy link
Author

Guys, I just found that @mutantcornholio's solution has a drawback: the two screen brightness buttons now don't work without pressing the Fn button. Are you guys experiencing the same problem?

Thanks!

@we11adam we11adam reopened this Dec 25, 2017
@mutantcornholio
Copy link

Yep, nothing's appear at EventViewer when pressing those is Karabiner-Elements is launched. Otherwise, works okay.

@j-martin
Copy link

@welladamm actually yes, I just assumed it was broken for another reason. My workaround is to use the brightness slider instead.

@stale
Copy link

stale bot commented Mar 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@roryokane
Copy link

After enabling modification of the untitled keyboard as @mutantcornholio suggests, I had to do one more change for F1 to work as normal instead of lowering the brightness. I had to uncheck the “Use all F1, F2, etc. keys as standard function keys” checkbox at the bottom of the Function Keys tab (the opposite of @kasecato’s setting). This is with my “Touch Bar shows” setting at “App Controls with Control Strip”, so that the F1 key only shows when I am already holding Fn.

@bosschaert
Copy link

While the hidutil approach works for some situations, I'm not sure it works for all. For example, I tend to remap the capslock key to a mouseclick. This is something I can do with Karabiner, but not with hidutil I think. Additionally, using hidutil is nowhere near as user-friendly as Karabiner.

In the not too distant future nearly all Macbook Pro users will have a touch bar. If Karabiner doesn't work with the touchbar and key modifiers, then nearly all users won't be able to use it any more...?

I would suggest to fix this issue in Karabiner, not just close it because of inactivity.

@studgeek
Copy link

I filed #1700 as a feature request to have that keyboard enabled by default.

@GalphaXie
Copy link

@mutantcornholio Plus, setting the function keys to the default Touch Bar display and use all Fn keys as as standard, it worked on my IntelliJ.
keybord_functionkeyskarabiner_useallf1f2

Thx, it‘s helpful for me!

@martinmts
Copy link

I think, I've got this 'fixed' by enabling this keyboard in settings: 2017-12-10 06-09-31

It's probably the touchbar "keyboard" which sends keys to Mac OS. Can someone verify this?

Thanks a lot. I confirm that it works.
It's been a few years later now. On my Mac, it now shows as Touchbar:

image

I checked this option and all modifier combinations started to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests