]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/textctrl.cpp
more fixes to HTML entities parsing when loading .hhk and .hhc
[wxWidgets.git] / src / mac / classic / textctrl.cpp
index 3819c0cd2e4d5028f5f5df1d5b9d4d128b61c79d..078f722035c69b79786ba092615cc0463184ed60 100644 (file)
@@ -1651,8 +1651,19 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
         case WXK_TAB:
             if ( !(m_windowStyle & wxTE_PROCESS_TAB))
             {
-                if (Navigate(!event.ShiftDown(), event.ControlDown()))
-                    return;
+                int flags = 0;
+                if (!event.ShiftDown())
+                    flags |= wxNavigationKeyEvent::IsForward ;
+                if (event.ControlDown())
+                    flags |= wxNavigationKeyEvent::WinChange ;
+                Navigate(flags);
+                return;
+            }
+            else
+            {
+                // This is necessary (don't know why) or the tab will not
+                // be inserted.
+                WriteText(wxT("\t"));
             }
             break;
     }