-
-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Version Information:
- Linux blueie 6.0.2-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:51 +0000 x86_64 GNU/Linux
- swhkd 1.2.1
Describe the bug:
If keys are pressed in the reverse order specified in the config file, the event will still be triggered. In addition, the first key in the sequence will be repeated infinitely.
For example, if setting up the key combo like so:
ctrl + p
spd-say 'print me'
When pressing the key combination p + ctrl
, the ctrl + p
command will be run. After the command is run, the p
key will continue to type itself infinitely.
Expected behavior:
The ctrl + p
command should not be triggered by a p + ctrl
key combo. In addition, the p
key should not continue to type itself infinitely.
Actual behavior:
See above.
To Reproduce:
Setup a config file like the following:
ctrl + p
spd-say 'hello'
Now start swhkd
and swhks
normally:
swhks &
pkexec swhkd
Now attempt to use the correct ordering of the key combo: ctrl + p
; you should hear your system speak the work "hello". Conversely, try to press the keys in the opposite order p + ctrl
, and notice what happens.
First, the command will still be triggered.
Second, your p
key will now type itself over and over and over again until you kill the process.
Additional information:
N/A