Add XK_KP_{Decimal,Enter} to KeyMappingX11::is_sym_numpad()

This commit is contained in:
Adam Scott 2025-02-05 02:13:01 -05:00
parent 0b6a717ac1
commit e34e127062
No known key found for this signature in database
GPG key ID: F6BA2A0302E21A77
2 changed files with 8 additions and 4 deletions

View file

@ -371,11 +371,13 @@ void KeyMappingXKB::initialize() {
bool KeyMappingXKB::is_sym_numpad(xkb_keysym_t p_keysym) {
switch (p_keysym) {
case XKB_KEY_KP_Equal:
case XKB_KEY_KP_Add:
case XKB_KEY_KP_Subtract:
case XKB_KEY_KP_Multiply:
case XKB_KEY_KP_Divide:
case XKB_KEY_KP_Subtract:
case XKB_KEY_KP_Separator:
case XKB_KEY_KP_Add:
case XKB_KEY_KP_Decimal:
case XKB_KEY_KP_0:
case XKB_KEY_KP_1:
case XKB_KEY_KP_2:

View file

@ -1131,11 +1131,13 @@ void KeyMappingX11::initialize() {
bool KeyMappingX11::is_sym_numpad(KeySym p_keysym) {
switch (p_keysym) {
case XK_KP_Equal:
case XK_KP_Add:
case XK_KP_Subtract:
case XK_KP_Multiply:
case XK_KP_Divide:
case XK_KP_Subtract:
case XK_KP_Separator:
case XK_KP_Add:
case XK_KP_Decimal:
case XK_KP_0:
case XK_KP_1:
case XK_KP_2: