Fix mac keybindings: ctrl(+shift)+backspace now works for word deletion

in both directions. Aerospace doesnt have conflicting keybindings
anymore.
This commit is contained in:
Martin Larsson 2025-07-14 01:04:11 +02:00
parent 49a2249634
commit d9dabcd655
2 changed files with 69 additions and 33 deletions

View file

@ -27,7 +27,7 @@
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["control"],
"mandatory": ["fn"],
"optional": ["any"]
}
},
@ -59,7 +59,7 @@
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["control"],
"mandatory": ["fn"],
"optional": ["any"]
}
},
@ -91,7 +91,7 @@
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["control"],
"mandatory": ["fn"],
"optional": ["any"]
}
},
@ -123,7 +123,7 @@
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["control"],
"mandatory": ["fn"],
"optional": ["any"]
}
},
@ -154,35 +154,72 @@
{
"description": "Escape ↔ Caps Lock toggle",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": ["any"]
}
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "caps_lock"
}
]
},
"to": [
{
"key_code": "caps_lock"
}
]
},
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": ["shift"]
}
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{
"key_code": "caps_lock"
}
]
}
]
},
{
"description": "Control+Backspace → Option+Backspace (word deletion)",
"manipulators": [
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["option"]
}
],
"type": "basic"
},
"to": [
{
"key_code": "caps_lock"
}
]
}
]
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["control", "shift"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["option", "shift"]
}
],
"type": "basic"
}
]
}
]
},