Fix wxKeyEvent::GetKeyCode() for non-US keyboard layouts

Use the key code corresponding to the key in the US keyboard layout for
the key down/up events even when not actually using US layout, as this
is much more useful than simply returning 0 as was done before.

It also is compatible with the behaviour of the other ports.

Closes #17643.

Closes #23379.

See #23410.
This commit is contained in:
Ivan Sorokin 2023-03-31 02:43:28 +03:00 committed by Vadim Zeitlin
parent 24a96a78d2
commit 2c0f6a2aa0
5 changed files with 247 additions and 6 deletions

View file

@ -1109,6 +1109,9 @@
/* Define if setpriority() is available. */
#undef HAVE_SETPRIORITY
/* Define if xkbcommon is available */
#undef HAVE_XKBCOMMON
/* Define if xlocale.h header file exists. */
#undef HAVE_XLOCALE_H