-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating scroll event from hook #40
Comments
The reason that In the latest version of the main branch (commit 53d410a) I added another
Design questions left: Do we need another clause that sends events when the hook is released (e.g. in the above example, when you release either the Ctrl or the D key after activating the hook?) If yes, what should its name be? If we were to add a clause (e.g.
Now suppose that in the above example If |
Hi,
I would like to generate a scroll event while catching a key sequence with a hook. I am trying the following:
--hook key:leftmeta key:d sequential period=0.001 send-key=rel:wheel_hi_res:-120@ms
but the command does not succeed, I get:
While parsing the arguments "--hook key:leftmeta key:d sequential period=0.001 send-key=rel:wheel_hi_res:-120@ms": While parsing the key "rel:wheel_hi_res:-120@ms": Invalid argument: only events of type EV_KEY (i.e. "key:something" or "btn:something") can be specified in this position.
Is there any reason why it is impossible to generate a wheel scroll event here? Or am I doing something wrong in trying to generate it?
The text was updated successfully, but these errors were encountered: