Skip to content

Commit

Permalink
wxWidgets patch for tab traversal
Browse files Browse the repository at this point in the history
see issue #195
  • Loading branch information
Scott M Anderson committed Jun 15, 2018
1 parent d67e150 commit c0949cd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions patches/wx31.patch
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,29 @@ index 7b73d1a..2e11194 100644
gtk_widget_show(wxrenderer->editor_bin);

return GTK_CELL_EDITABLE(wxrenderer->editor_bin);
diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp
index f86dbe2..aa6935c 100644
--- a/src/gtk/window.cpp
+++ b/src/gtk/window.cpp
@@ -3397,6 +3397,18 @@ void wxWindowGTK::DoEnable( bool enable )
gtk_widget_set_sensitive( m_widget, enable );
if (m_wxwindow && (m_wxwindow != m_widget))
gtk_widget_set_sensitive( m_wxwindow, enable );
+
+ if (enable && AcceptsFocusFromKeyboard())
+ {
+ wxWindowGTK* parent = this;
+ while ((parent = parent->GetParent()))
+ {
+ parent->m_dirtyTabOrder = true;
+ if (parent->IsTopLevel())
+ break;
+ }
+ wxTheApp->WakeUpIdle();
+ }
}

int wxWindowGTK::GetCharHeight() const
diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp
index bea1ddd..1ba0bb7 100644
--- a/src/msw/statbmp.cpp
Expand Down

0 comments on commit c0949cd

Please sign in to comment.