X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2dcbc4615b8991370eb4ab77eca49e4f97c52a4c..7fbc727b20f39088ddd5e5cf4b6aed930da69119:/src/msw/uiaction.cpp diff --git a/src/msw/uiaction.cpp b/src/msw/uiaction.cpp index ee59fd0603..eb5bfd1e34 100644 --- a/src/msw/uiaction.cpp +++ b/src/msw/uiaction.cpp @@ -16,9 +16,10 @@ #if wxUSE_UIACTIONSIMULATOR #include "wx/uiaction.h" -#include "wx/window.h" //for wxCharCodeWXToMSW #include "wx/msw/wrapwin.h" +#include "wx/msw/private/keyboard.h" + namespace { @@ -75,7 +76,7 @@ bool wxUIActionSimulator::DoKey(int keycode, int WXUNUSED(modifiers), bool isDown) { bool isExtended; - DWORD vkkeycode = wxCharCodeWXToMSW(keycode, &isExtended); + DWORD vkkeycode = wxMSWKeyboard::WXToVK(keycode, &isExtended); DWORD flags = 0; if ( isExtended )