64 bit workaround
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
// control interferes with some built-in keys like pgdown, return etc. therefore we remove the controlKey modifier
|
||||||
// and look at the character after
|
// and look at the character after
|
||||||
|
#ifdef __LP64__
|
||||||
|
// TODO new implementation using TextInputSources
|
||||||
|
#else
|
||||||
UInt32 state = 0;
|
UInt32 state = 0;
|
||||||
UInt32 keyInfo = KeyTranslate((Ptr)GetScriptManagerVariable(smKCHRCache), ( modifiers & (~(controlKey | shiftKey | optionKey))) | keycode, &state);
|
UInt32 keyInfo = KeyTranslate((Ptr)GetScriptManagerVariable(smKCHRCache), ( modifiers & (~(controlKey | shiftKey | optionKey))) | keycode, &state);
|
||||||
keychar = short(keyInfo & charCodeMask);
|
keychar = short(keyInfo & charCodeMask);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
long keyval = wxMacTranslateKey(keychar, keycode) ;
|
long keyval = wxMacTranslateKey(keychar, keycode) ;
|
||||||
|
Reference in New Issue
Block a user