Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (94 sloc) 1.95 KB
{
"title": "keyboard_type_if, keyboard_type_unless example",
"rules": [
{
"description": "Change control-[ to escape",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"conditions": [
{
"type": "keyboard_type_if",
"keyboard_types": [
"ansi",
"iso"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"conditions": [
{
"type": "keyboard_type_if",
"keyboard_types": [
"jis"
]
}
]
}
]
},
{
"description": "Change escape to mission_control if keyboard_type != ansi",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "mission_control"
}
],
"conditions": [
{
"type": "keyboard_type_unless",
"keyboard_types": [
"ansi"
]
}
]
}
]
}
]
}