adjusting keyboardstate to new ctrl / raw_ctrl handling on osx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1570,10 +1570,10 @@ wxMouseState wxGetMouseState()
|
||||
ms.SetRightDown( (buttons & 0x02) != 0 );
|
||||
|
||||
UInt32 modifiers = GetCurrentKeyModifiers();
|
||||
ms.SetControlDown(modifiers & controlKey);
|
||||
ms.SetRawControlDown(modifiers & controlKey);
|
||||
ms.SetShiftDown(modifiers & shiftKey);
|
||||
ms.SetAltDown(modifiers & optionKey);
|
||||
ms.SetMetaDown(modifiers & cmdKey);
|
||||
ms.SetControlDown(modifiers & cmdKey);
|
||||
|
||||
return ms;
|
||||
}
|
||||
@@ -1766,9 +1766,9 @@ void wxApp::MacCreateKeyEvent( wxKeyEvent& event, wxWindow* focus , long keymess
|
||||
}
|
||||
|
||||
event.m_shiftDown = modifiers & shiftKey;
|
||||
event.m_controlDown = modifiers & controlKey;
|
||||
event.m_rawControlDown = modifiers & controlKey;
|
||||
event.m_altDown = modifiers & optionKey;
|
||||
event.m_metaDown = modifiers & cmdKey;
|
||||
event.m_controlDown = modifiers & cmdKey;
|
||||
event.m_keyCode = keyval ;
|
||||
#if wxUSE_UNICODE
|
||||
event.m_uniChar = uniChar ;
|
||||
|
||||
Reference in New Issue
Block a user