Last active
November 22, 2017 16:48
-
-
Save s-show/335f2b7c9d5bf9fcc8e7326c10ee0113 to your computer and use it in GitHub Desktop.
Karabiner-Elementsの設定(テンキーの"."の二度押しで","を入力する設定)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Double tap 'keypad_period' to 'comma'", | |
"extra_description_level": 1, | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "keypad_period" }, | |
"to": [ | |
{ "key_code": "delete_or_backspace"}, | |
{ "key_code": "comma" }, | |
{ | |
"set_variable": { | |
"name": "press_period_key", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "press_period_key", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "keypad_period" }, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "press_period_key", | |
"value": 1 | |
} | |
}, | |
{ "key_code": "keypad_period" } | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "press_period_key", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "press_period_key", | |
"value": 0 | |
} | |
} | |
] | |
}, | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "press_period_key", | |
"value": 0 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment