Repository navigation
Conversation
With NumLock off, xkb reports the keypad keys as KP_Home, KP_End, KP_Up and so on. They had no mapping, so they could not be bound as hotkeys. Map them to the regular keys, like they behave on Windows, and KP_Begin to Clear.
kkartaltepe
approved these changes
Oct 24, 2026
kkartaltepe
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, seems to match Windows as stated.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
maps the keypad keysyms xkb reports with NumLock off (
KP_Home,KP_End,KP_Up, ...) to the regular keys on Wayland, so they can be bound as hotkeys.KP_Begin(numpad 5) goes toOBS_KEY_CLEARwith a "Clear" label.Motivation and Context
they all returned
OBS_KEY_NONE. as kkartaltepe suggested in the thread, they map to the normal keys instead of new ones, which is also what Windows gives (VK_END,VK_CLEAR...).Fixes #9244
How Has This Been Tested?
small program compiling the mapping functions before/after against a real xkb keymap (evdev/pc105/us) with NumLock toggled: before all 11 keys give
OBS_KEY_NONE, after each gives the expected key and label, NumLock on still givesNUM0..NUM9. built libobs. not tested in a Wayland session.Types of changes
Checklist: