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

Add mapping for non-numlocked numpad keys under Wayland #11606

Conversation

mohidd
Copy link

@mohidd mohidd commented Dec 8, 2024

Description

This Pull Request adds mappings for non-numlocked numpad keys under Wayland. Previously, keys such as KP_End, KP_Down, KP_Home, etc. were not assignable as hotkeys when Num Lock was turned off. Now, these keys are mapped to their corresponding navigation keys (End, Down, Home, Page Up/Down, etc.), allowing users to assign them as hotkeys as expected.

Motivation and Context

This change is required because users on Wayland could not assign non-numlocked numpad keys as hotkeys in OBS. It fixes issue #9244 .

How Has This Been Tested?

Turned off Num Lock, then opened Hotkeys settings in OBS.
Pressed Numpad 1 (which maps to KP_End), verified that it now registers as "End".
Repeated the test for other non-numlocked numpad keys (KP_Home, KP_Up, KP_Prior, etc.)

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

mohidd added 3 commits December 8, 2024 17:27
Non-numlocked numpad keys (e.g., KP_End, KP_Down, KP_Home, etc.) were not
previously mapped under Wayland. This change maps them to their corresponding
navigation keys (End, Down, Home, etc.), allowing these keys to be assigned
as hotkeys when Num Lock is turned off.
Non-numlocked numpad keys (e.g., KP_End, KP_Down, KP_Home, etc.) were not
previously mapped under Wayland. This change maps them to their corresponding
navigation keys (End, Down, Home, etc.), allowing these keys to be assigned
as hotkeys when Num Lock is turned off.
Non-numlocked numpad keys (e.g., KP_End, KP_Down, KP_Home, etc.) were not
previously mapped under Wayland. This change maps them to their corresponding
navigation keys (End, Down, Home, etc.), allowing these keys to be assigned
as hotkeys when Num Lock is turned off.
@Fenrirthviti
Copy link
Member

This is the third PR that has failed to, at the very least, follow our contribution guidelines.

It also appears to be the third strike for being nonsense that isn't actually tested or validated in any way.

This user will be blocked from further contributions.

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.

2 participants