I've used the following stanza to change the behavior of the Caps Lock key in the following ways:
This behavior works just fine in 11.6.0 but seems broken in 12.0.0 - 12.0.7.
In 12.0.0 - 12.0.7, caps_lock is still seen as a key event when pressed alone, but it no longer activates Caps Lock. Caps Lock seems to behave normally when it isn't assigned.
javascript
{
"description": "Change caps_lock key to left_control if pressed with other keys. (Post caps_lock when pressed alone)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
}
]
}
Please use hold_down_milliseconds
https://github.com/tekezo/Karabiner-Elements/issues/1349#issuecomment-381379081
Thanks, that did it! For anyone interested, here's the fixed stanza:
```javascript
{
"description": "Change caps_lock key to left_control if pressed with other keys. (Post caps_lock when pressed alone)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "caps_lock",
"hold_down_milliseconds": 100
}
],
"type": "basic"
}
]
}
Most helpful comment
Please use
hold_down_millisecondshttps://github.com/tekezo/Karabiner-Elements/issues/1349#issuecomment-381379081