Fix keyboard event key codes when using Wayland

Correct the confusion between compile- and run-time checks for X11.

Closes #17848.
This commit is contained in:
Vadim Zeitlin 2017-04-26 22:30:36 +02:00
parent 0975228809
commit 7542632302

View File

@ -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