]> git.saurik.com Git - wxWidgets.git/commit - src/msw/uiaction.cpp
Generate correct events for extended keys in wxMSW wxUIActionSimulator.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:18:25 +0000 (10:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:18:25 +0000 (10:18 +0000)
commit2dcbc4615b8991370eb4ab77eca49e4f97c52a4c
tree7092407c1f1f86102bce4ef9ba0b8a517a5d8396
parent9cbe96d0932a00ed61bc3cbd8a67013e9c8576e1
Generate correct events for extended keys in wxMSW wxUIActionSimulator.

Simulating keys such as WXK_END resulted in WXK_NUMPAD_END event being
generated instead of the expected WXK_END one.

Fix this by returning from wxCharCodeWXToMSW() whether the key code is a
normal or extended one and use this to set KEYEVENTF_EXTENDEDKEY in
wxUIActionSimulator::DoKey().

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