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

Simplify/restrict shortcut mods #4741

Merged
merged 2 commits into from
Jun 23, 2024
Merged

Simplify/restrict shortcut mods #4741

merged 2 commits into from
Jun 23, 2024

Conversation

rom1v
Copy link
Collaborator

@rom1v rom1v commented Mar 7, 2024

Restrict shortcut modifiers to be composed of only one item each.

Currently, it is possible to select a list of multiple combinations of modifier keys, like --shortcut-mod='lctrl+lalt,rctrl+rsuper', meaning that shortcuts would be triggered either by LCtrl+LAlt+key or RCtrl+RSuper+key.

This was overly generic, probably not used very much, and it prevents to solve easily inconsistencies between UP and DOWN events of modifier keys sent to the device.

This change allows to ignore the keycodes associated to a shortcut modifier (which was not directly possible when a combination of modifiers was required).

(EDIT: not all issues are solved though, it is still possible to generate a key down without the matching key up or vice-versa)

Refs #4732

Restrict shortcut modifiers to be composed of only one item each.

Before, it was possible to select a list of multiple combinations of
modifier keys, like --shortcut-mod='lctrl+lalt,rctrl+rsuper', meaning
that shortcuts would be triggered either by LCtrl+LAlt+key or
RCtrl+RSuper+key.

This was overly generic, probably not used very much, and it prevents to
solve inconsistencies between UP and DOWN events of modifier keys sent
to the device.

Refs #4732 <#4732>
PR #4741 <#4741>
Never inject keycodes used as shortcut modifiers.

Refs #4732 <#4732>
PR #4741 <#4741>
@rom1v rom1v changed the base branch from master to dev June 23, 2024 17:20
@rom1v rom1v merged commit 0b92692 into dev Jun 23, 2024
FreedomBen pushed a commit to FreedomBen/scrcpy that referenced this pull request Aug 2, 2024
Restrict shortcut modifiers to be composed of only one item each.

Before, it was possible to select a list of multiple combinations of
modifier keys, like --shortcut-mod='lctrl+lalt,rctrl+rsuper', meaning
that shortcuts would be triggered either by LCtrl+LAlt+key or
RCtrl+RSuper+key.

This was overly generic, probably not used very much, and it prevents to
solve inconsistencies between UP and DOWN events of modifier keys sent
to the device.

Refs Genymobile#4732 <Genymobile#4732>
PR Genymobile#4741 <Genymobile#4741>
FreedomBen pushed a commit to FreedomBen/scrcpy that referenced this pull request Aug 2, 2024
Never inject keycodes used as shortcut modifiers.

Refs Genymobile#4732 <Genymobile#4732>
PR Genymobile#4741 <Genymobile#4741>
Gottox pushed a commit to Gottox/scrcpy that referenced this pull request Sep 29, 2024
Restrict shortcut modifiers to be composed of only one item each.

Before, it was possible to select a list of multiple combinations of
modifier keys, like --shortcut-mod='lctrl+lalt,rctrl+rsuper', meaning
that shortcuts would be triggered either by LCtrl+LAlt+key or
RCtrl+RSuper+key.

This was overly generic, probably not used very much, and it prevents to
solve inconsistencies between UP and DOWN events of modifier keys sent
to the device.

Refs Genymobile#4732 <Genymobile#4732>
PR Genymobile#4741 <Genymobile#4741>
Gottox pushed a commit to Gottox/scrcpy that referenced this pull request Sep 29, 2024
Never inject keycodes used as shortcut modifiers.

Refs Genymobile#4732 <Genymobile#4732>
PR Genymobile#4741 <Genymobile#4741>
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.

1 participant