Skip to content

Commit

Permalink
Fix keyboard event key codes when using Wayland
Browse files Browse the repository at this point in the history
Correct the confusion between compile- and run-time checks for X11.

Closes wxWidgets#17848.
  • Loading branch information
vadz committed Apr 26, 2017
1 parent 0975228 commit 7542632
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gtk/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,11 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
// got one
key_code = keysymNormalized ? keysymNormalized : keysym;
}
#else
key_code = keysym;
#endif
else
#endif // GDK_WINDOWING_X11
{
key_code = keysym;
}

// as explained above, we want to have lower register key codes
// normally but for the letter keys we want to have the upper ones
Expand Down

0 comments on commit 7542632

Please sign in to comment.