Fix keyboard event key codes when using Wayland
Correct the confusion between compile- and run-time checks for X11.
See #17848.
(cherry picked from commit 7542632302
)
This commit is contained in:
@@ -629,6 +629,7 @@ wxGTK:
|
|||||||
- Make items selected from keyboard visible in wxListCtrl (Jonathan Dagresta).
|
- Make items selected from keyboard visible in wxListCtrl (Jonathan Dagresta).
|
||||||
- Cosmetic fix for empty wxCheckBoxes display (Chuddah).
|
- Cosmetic fix for empty wxCheckBoxes display (Chuddah).
|
||||||
- Fix crashes in wxFileSystemWatcher implementation (David Hart).
|
- Fix crashes in wxFileSystemWatcher implementation (David Hart).
|
||||||
|
- Fix key events codes when using Wayland (David Hart).
|
||||||
|
|
||||||
wxMSW:
|
wxMSW:
|
||||||
|
|
||||||
|
@@ -810,9 +810,11 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
|
|||||||
// got one
|
// got one
|
||||||
key_code = keysymNormalized ? keysymNormalized : keysym;
|
key_code = keysymNormalized ? keysymNormalized : keysym;
|
||||||
}
|
}
|
||||||
#else
|
else
|
||||||
key_code = keysym;
|
#endif // GDK_WINDOWING_X11
|
||||||
#endif
|
{
|
||||||
|
key_code = keysym;
|
||||||
|
}
|
||||||
|
|
||||||
// as explained above, we want to have lower register key codes
|
// as explained above, we want to have lower register key codes
|
||||||
// normally but for the letter keys we want to have the upper ones
|
// normally but for the letter keys we want to have the upper ones
|
||||||
|
Reference in New Issue
Block a user