]> git.saurik.com Git - wxWidgets.git/commitdiff
wxToupper added again
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 24 Aug 2002 07:40:45 +0000 (07:40 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 24 Aug 2002 07:40:45 +0000 (07:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/app.cpp
src/mac/carbon/app.cpp

index b5855a013b57859504824442ad0a6bef37f2b8c4..ecb1667576e9e8ebf771eb605ce7e50fc430b02e 100644 (file)
@@ -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);
index b5855a013b57859504824442ad0a6bef37f2b8c4..ecb1667576e9e8ebf771eb605ce7e50fc430b02e 100644 (file)
@@ -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);