Skip to content

Instantly share code, notes, and snippets.

@haotian-liu
Created October 22, 2019 18:30
Show Gist options
  • Save haotian-liu/05185f261d9a3a9a0ceadd1e98843b57 to your computer and use it in GitHub Desktop.
Save haotian-liu/05185f261d9a3a9a0ceadd1e98843b57 to your computer and use it in GitHub Desktop.
Keep 'spacebar' from being pressed twice
{
"description": "Keep 'spacebar' from being pressed twice",
"manipulators":
[
{
"from": { "key_code": "spacebar" },
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 50 },
"to_if_held_down":[
{
"key_code": "spacebar",
"repeat": true
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment