yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.17k stars 120 forks source link

Setting repeat to false with multiple "to" keys in the "other options" section? #156

Closed dslittle22 closed 2 years ago

dslittle22 commented 2 years ago

I'm trying to get the functionality of: if comma is pressed once, it is a comma, but if held down, it becomes an exclamation point. Here's what the rule looks like:

[:comma :comma nil {:held [:delete_or_backspace :!S1]}]

This gets me what I want, but if I hold comma for a little too long then the exclamation point repeats. I know you can do:

[:comma :comma nil {:held {:key :!S1 :repeat false}}]

But, this does not work- the backspace is needed to delete the comma. Is there a way to set repeat to false in a block like this?

yqrashawn commented 2 years ago

try set :held to [{:key :delete_or_backspace :repeat false} {:key :!S1 :repeat false}] it should work the definition of each to can be found here and goku parse it like this