Skip to content

Commit

Permalink
Don't print "unrecognized key" message for an X11 keycode of 0. This …
Browse files Browse the repository at this point in the history
…can happen with composed characters.
  • Loading branch information
slouken committed Aug 13, 2013
1 parent 5d1865c commit 67367be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -440,7 +440,7 @@ X11_DispatchEvent(_THIS)
#endif
SDL_SendKeyboardKey(SDL_PRESSED, videodata->key_layout[keycode]);
#if 1
if (videodata->key_layout[keycode] == SDL_SCANCODE_UNKNOWN) {
if (videodata->key_layout[keycode] == SDL_SCANCODE_UNKNOWN && keycode) {
int min_keycode, max_keycode;
XDisplayKeycodes(display, &min_keycode, &max_keycode);
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
Expand Down

0 comments on commit 67367be

Please sign in to comment.