Browse Source

Fixed keyboard scancode mapping for parenthesis

(thanks to @meyraud705 for tracking down the root cause!)

Fixes https://github.com/libsdl-org/SDL/issues/6787
Closes https://github.com/libsdl-org/SDL/pull/6937

(cherry picked from commit e1bd5bd071d066e7009261f96c896423f6fd8fd0)
Sam Lantinga 2 years ago
parent
commit
74229d4a41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/events/SDL_keysym_to_scancode.c

+ 2 - 2
src/events/SDL_keysym_to_scancode.c

@@ -238,8 +238,8 @@ static const Uint32 LinuxKeycodeKeysyms[] = {
     /* 176, 0x0b0 */    0x0, /* NoSymbol */
     /* 177, 0x0b1 */    0x1008FF78, /* XF86ScrollUp */
     /* 178, 0x0b2 */    0x1008FF79, /* XF86ScrollDown */
-    /* 179, 0x0b3 */    0x28, /* parenleft */
-    /* 180, 0x0b4 */    0x29, /* parenright */
+    /* 179, 0x0b3 */    0x0, /* NoSymbol */
+    /* 180, 0x0b4 */    0x0, /* NoSymbol */
     /* 181, 0x0b5 */    0x1008FF68, /* XF86New */
     /* 182, 0x0b6 */    0xFF66, /* Redo */
     /* 183, 0x0b7 */    0xFFCA, /* F13 */