]> git.saurik.com Git - wxWidgets.git/commit - src/msw/window.cpp
Better checks for wxMSWKeyboard::VKToWX() return value.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Sep 2010 13:31:41 +0000 (13:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Sep 2010 13:31:41 +0000 (13:31 +0000)
commit033428a32cd5d5b12647980abccf8e40172485f2
tree396bd64e2cf4c981b55095734ae416f3de302c3c
parent246117d4440eeea80d965d96c63b7229912c1308
Better checks for wxMSWKeyboard::VKToWX() return value.

Don't generate key events without any valid key code (this shouldn't normally
happen but might on exotic keyboards with keys that we don't know about).

Also ensure that we can distinguish between VKToWX() returning dead keys and
non-Latin-1 keys by setting wchar_t output parameter to WXK_NONE too in the
former case but not the latter.

Generate wxEVT_CHAR_HOOK events for non-Latin-1 keys too in Unicode build.

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