From 40943a047301ba673402fd89a7ea22e79f60e322 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 22 May 2007 06:04:12 +0000 Subject: [PATCH] 64 bit workaround git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/app.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 96582a326f..891302ac8e 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1626,9 +1626,13 @@ void wxApp::MacCreateKeyEvent( wxKeyEvent& event, wxWindow* focus , long keymess { // control interferes with some built-in keys like pgdown, return etc. therefore we remove the controlKey modifier // and look at the character after +#ifdef __LP64__ + // TODO new implementation using TextInputSources +#else UInt32 state = 0; UInt32 keyInfo = KeyTranslate((Ptr)GetScriptManagerVariable(smKCHRCache), ( modifiers & (~(controlKey | shiftKey | optionKey))) | keycode, &state); keychar = short(keyInfo & charCodeMask); +#endif } long keyval = wxMacTranslateKey(keychar, keycode) ;