wxToupper added again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0326d9689e
commit
b96a8bdb60
@ -1844,8 +1844,9 @@ bool wxApp::MacSendKeyDownEvent( wxWindow* focus , long keymessage , long modifi
|
||||
long realkeyval = keyval ;
|
||||
if ( keyval == keychar )
|
||||
{
|
||||
// we are not on a special character combo -> pass the real os event-value to EVT_CHAR, but not to EVT_KEY
|
||||
// we are not on a special character combo -> pass the real os event-value to EVT_CHAR, but not to EVT_KEY (make upper first)
|
||||
realkeyval = short(keymessage & charCodeMask) ;
|
||||
keyval = wxToupper( keyval ) ;
|
||||
}
|
||||
|
||||
wxKeyEvent event(wxEVT_KEY_DOWN);
|
||||
@ -1986,6 +1987,10 @@ bool wxApp::MacSendKeyUpEvent( wxWindow* focus , long keymessage , long modifier
|
||||
}
|
||||
long keyval = wxMacTranslateKey(keychar, keycode) ;
|
||||
|
||||
if ( keyval == keychar )
|
||||
{
|
||||
keyval = wxToupper( keyval ) ;
|
||||
}
|
||||
bool handled = false ;
|
||||
|
||||
wxKeyEvent event(wxEVT_KEY_UP);
|
||||
|
@ -1844,8 +1844,9 @@ bool wxApp::MacSendKeyDownEvent( wxWindow* focus , long keymessage , long modifi
|
||||
long realkeyval = keyval ;
|
||||
if ( keyval == keychar )
|
||||
{
|
||||
// we are not on a special character combo -> pass the real os event-value to EVT_CHAR, but not to EVT_KEY
|
||||
// we are not on a special character combo -> pass the real os event-value to EVT_CHAR, but not to EVT_KEY (make upper first)
|
||||
realkeyval = short(keymessage & charCodeMask) ;
|
||||
keyval = wxToupper( keyval ) ;
|
||||
}
|
||||
|
||||
wxKeyEvent event(wxEVT_KEY_DOWN);
|
||||
@ -1986,6 +1987,10 @@ bool wxApp::MacSendKeyUpEvent( wxWindow* focus , long keymessage , long modifier
|
||||
}
|
||||
long keyval = wxMacTranslateKey(keychar, keycode) ;
|
||||
|
||||
if ( keyval == keychar )
|
||||
{
|
||||
keyval = wxToupper( keyval ) ;
|
||||
}
|
||||
bool handled = false ;
|
||||
|
||||
wxKeyEvent event(wxEVT_KEY_UP);
|
||||
|
Loading…
Reference in New Issue
Block a user