]> git.saurik.com Git - wxWidgets.git/commit
Fix generation of key events for non-alphabetic keys under Windows.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:19:02 +0000 (10:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:19:02 +0000 (10:19 +0000)
commit5844ad30dd364fd9121b947dfb5164f4ad3a94da
tree6e938b7c623f594b0b1c3e9740c123760d5dc5d4
parente7b12eece089de08a761d5862ff92329e5038574
Fix generation of key events for non-alphabetic keys under Windows.

Don't hardcode the values of VK_OEM_XXX keys which are completely nonsensical
on keyboards with non-US layouts. Use the real unshifted value of the key as
its key code instead -- at least if it's a Latin-1 character. Otherwise, use
WXK_NONE as the key code and pass the character generated by the key as
Unicode character code.

Also generate WXK_NONE events for dead keys to avoid confusing them with the
corresponding normal key events.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/private/keyboard.h
src/msw/listctrl.cpp
src/msw/window.cpp