-
Notifications
You must be signed in to change notification settings - Fork 131
actions: Add VoidAction(), mirroring NoSymbol/VoidSymbol. #763
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
base: master
Are you sure you want to change the base?
Conversation
It enables erasing a previous action and breaks latches. | ||
|
||
This is a libxkbcommon extension. When serializing it will be converted to | ||
`LockControls(controls=none,affect=neither)` for backward compatibility. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does LockControls also break latches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does. See also our own xkb_action_breaks_latch()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, AIUI, VoidAction is just a nicer alias for the LockControls action. If so, this LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. This brings better semantics and we can make it a proper independent action later. I chose LockControls(controls=none,affect=neither)
because it seems the only portable action we support that would cause no side effect other than breaking latches. SetControls()
may be fine too, but the affect=neither
field of LockControls
seems to better ensure it is a dummy action.
Added `VoidAction()` action to match the keysym pair `NoSymbol` / `VoidSymbol`. It enables erasing a previous action and breaks latches. This is a libxkbcommon extension. When serializing it will be converted to `LockControls(controls=none,affect=neither)` for backward compatibility. We cannot serialize it to `NoAction()`, as it would be dropped in e.g. the context of multiple actions.
Added
VoidAction()
action to match the keysym pairNoSymbol
/VoidSymbol
.It enables erasing a previous action and breaks latches.
This is a libxkbcommon extension. When serializing it will be converted to
LockControls(controls=none,affect=neither)
for backward compatibility. We cannot serialize it toNoAction()
, as it would be dropped in e.g. the context of multiple actions.Fixes #622
@mahkoh @Jules-Bertholet