Skip to content

Instantly share code, notes, and snippets.

@x7c1
Last active September 2, 2024 04:02
Show Gist options
  • Select an option

  • Save x7c1/8a6a4d1db00a36fa2a4c67c0cb662121 to your computer and use it in GitHub Desktop.

Select an option

Save x7c1/8a6a4d1db00a36fa2a4c67c0cb662121 to your computer and use it in GitHub Desktop.
(left_shift, right_shift) -> (eisuu, kana)
{
"description": "シフトキーを単体で押したときに、英数・かなキーを送信する。(左シフトキーは英数、右シフトキーはかな)",
"manipulators": [
{
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 100
},
"to": [
{
"key_code": "left_shift",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"to_if_held_down": [
{
"key_code": "left_shift"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 100
},
"to": [
{
"key_code": "right_shift",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"to_if_held_down": [
{
"key_code": "right_shift"
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment