From: Julian Smart Date: Tue, 15 Jun 2004 14:49:54 +0000 (+0000) Subject: Tests for wxTE_PROCESS_TAB again in line with other ports X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f5f3247dcc3a65b5018f5b8843f139ae6b6e6bd2 Tests for wxTE_PROCESS_TAB again in line with other ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 13d9f19cd6..82cdcb61f2 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1194,9 +1194,12 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, // VZ: testing for wxTE_PROCESS_TAB shouldn't be done here the control may // have this style, yet choose not to process this particular TAB in which // case TAB must still work as a navigational character -#if 0 +// JS: enabling again to make consistent with other platforms +// (with wxTE_PROCESS_TAB you have to call Navigate to get default +// navigation behaviour) +#if 1 !win->HasFlag(wxTE_PROCESS_TAB) && -#endif // 0 +#endif win->GetParent() && (win->GetParent()->HasFlag( wxTAB_TRAVERSAL)) ) { wxNavigationKeyEvent new_event; diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 13d9f19cd6..82cdcb61f2 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1194,9 +1194,12 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, // VZ: testing for wxTE_PROCESS_TAB shouldn't be done here the control may // have this style, yet choose not to process this particular TAB in which // case TAB must still work as a navigational character -#if 0 +// JS: enabling again to make consistent with other platforms +// (with wxTE_PROCESS_TAB you have to call Navigate to get default +// navigation behaviour) +#if 1 !win->HasFlag(wxTE_PROCESS_TAB) && -#endif // 0 +#endif win->GetParent() && (win->GetParent()->HasFlag( wxTAB_TRAVERSAL)) ) { wxNavigationKeyEvent new_event;