]> git.saurik.com Git - wxWidgets.git/commitdiff
Handle Shift-TAB correctly in wxOSX/Carbon wxComboBox.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Nov 2012 23:55:53 +0000 (23:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Nov 2012 23:55:53 +0000 (23:55 +0000)
The navigation event direction should depend on Shift key state.

See #3821.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/combobox.cpp

index 387f7402a581d25d071fe8daafa75c9e70b3b553..73bbbad274fb761d9770d184790f24e073193b85 100644 (file)
@@ -58,7 +58,7 @@ protected:
         {
             wxNavigationKeyEvent NavEvent;
             NavEvent.SetEventObject(this);
-            NavEvent.SetDirection(true);
+            NavEvent.SetDirection(!event.ShiftDown());
             NavEvent.SetWindowChange(false);
 
             // Get the parent of the combo and have it process the navigation?