Karabiner-Elements
Karabiner-Elements copied to clipboard
'fn' is input as 'Globe'
I am using 'caps_lock' modified to 'fn' as shown below:
I updated the OS today to Monterey 12.4. From then on, when I press 'fn' (actually 'caps_lock' for me), the input source changed.
I found the following first sight setting in System Preferences, which seems to be the cause.
I solved it by swapping 'Caps Lock' and 'Globe' of 'Karabiner DriverKit VirtualHIDKeyboard 1.6.0' in [Modifier Keys...].
However, there may be users who want to use both 'fn' and 'Globe'. So is there any way to solve this?
Is input source changed only when fn
is pressed alone? That is, does it change when pressing, for example, fn+F4
?
@MuhammedZakir Combination doesn't change. It only changes on single input.
Then, you can do something like:
{
"description": "caps lock -> fn ; does nothing when pressed alone",
"type": "basic",
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 1
},
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]
}
},
"to_if_held_down": [{
"key_code": "fn"
}]
}
Note:
-
"key_code": "fn"
may not work. It it doesn't, you need to replace it with what you get in EventViewer when you pressfn
. - I haven't tested this, so I am not sure whether this work as expected. Mainly, I don't know if a dummy
to_if_alone
is needed to make this work correctly.- You may add
to_if_alone
to mapcaps_lock
to some other key, or itself, when pressed alone.
- You may add