From 05c7d17691045d8b892fb01364533da28cf79066 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 5 Jul 2000 16:22:28 +0000 Subject: [PATCH] controls with wxTE_PROCESS_TAB may still generate navigation events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 5 +++++ src/gtk1/window.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 265f40561c..8f921839aa 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -889,7 +889,12 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e /* win is a control: tab can be propagated up */ if ( (!ret) && ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab)) && +// 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 (!win->HasFlag(wxTE_PROCESS_TAB)) && +#endif // 0 (win->GetParent()) && (win->GetParent()->HasFlag( wxTAB_TRAVERSAL)) ) { diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 265f40561c..8f921839aa 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -889,7 +889,12 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e /* win is a control: tab can be propagated up */ if ( (!ret) && ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab)) && +// 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 (!win->HasFlag(wxTE_PROCESS_TAB)) && +#endif // 0 (win->GetParent()) && (win->GetParent()->HasFlag( wxTAB_TRAVERSAL)) ) {