summaryrefslogtreecommitdiffstats
path: root/config/karabiner/assets/complex_modifications/command-escape.json
diff options
context:
space:
mode:
Diffstat (limited to 'config/karabiner/assets/complex_modifications/command-escape.json')
-rw-r--r--config/karabiner/assets/complex_modifications/command-escape.json24
1 files changed, 23 insertions, 1 deletions
diff --git a/config/karabiner/assets/complex_modifications/command-escape.json b/config/karabiner/assets/complex_modifications/command-escape.json
index 03c6167..f00158c 100644
--- a/config/karabiner/assets/complex_modifications/command-escape.json
+++ b/config/karabiner/assets/complex_modifications/command-escape.json
@@ -2,9 +2,9 @@
"title": "Map Command to Escape when pressed alone",
"rules": [
{
+ "description": "Map command to escape",
"manipulators": [
{
- "description": "Map left command to escape",
"type": "basic",
"from": {
"key_code": "left_command",
@@ -25,6 +25,28 @@
"key_code": "escape"
}
]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "right_command",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "right_command",
+ "lazy": true
+ }
+ ],
+ "to_if_alone": [
+ {
+ "key_code": "escape"
+ }
+ ]
}
]
}