yqrashawn / GokuRakuJoudo

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

Conditions in afterup, possible? #134

Closed Madd0g closed 3 years ago

Madd0g commented 3 years ago

I'm trying to set a variable in :held and then do something in :afterup only if the variable is set.

Is that somehow possible?

yqrashawn commented 3 years ago

According to karabiner's doc, it's not possible to define conditions in :afterup since to_after_up is just a to event defination. You may need to find other way to implement this.