Skip to content
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

feat!(KeyBindings): Allow pure modifier keysets #1074

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

badosu
Copy link
Collaborator

@badosu badosu commented Nov 15, 2023

Previously the engine was unable to handle any combination of modifiers without keysets, for example:

An input of keypress ctrl+alt -> would trigger an action bound to alt

This commit makes it so that any keyboard state composed of a combination of modifiers without any other keys is interpreted as a keyset of 'none' + mods.

For consumers intending to bind to these combinations, none is not required as we sanitize internally, but it can also be set, e.g.:

Shift+none == shift or ctrl+shift == ctrl+shift+none

Fix #1071

@badosu badosu marked this pull request as draft November 15, 2023 01:05
Previously the engine was unable to handle any combination of modifiers
without keysets, for example:

An input of keypress alt -> would trigger an action bound to ctrl+alt

This commit makes it so that any keyboard state composed of a
combination of modifiers without any other keys is interpreted as a
keyset of 'none' + mods.

For consumers intending to bind to these combinations, none is not
required as we sanitize internally, but it can also be set, e.g.:

Shift+none == shift  or  ctrl+shift == ctrl+shift+none
@badosu badosu force-pushed the badosu/allow-pure-modifiers-keysets branch from 156faa9 to 6b9ccfa Compare November 15, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Modifiers without keysets don't work as expected
3 participants