]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed problem with choice editor in wxGrid whereby the editor
authorJulian Smart <julian@anthemion.co.uk>
Thu, 17 Nov 2005 17:43:15 +0000 (17:43 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 17 Nov 2005 17:43:15 +0000 (17:43 +0000)
lost focus when the combobox menu was shown.

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

docs/changes.txt
src/generic/grid.cpp

index 2eb8dec21323838fea768ef09db786bbf0b9f80e..92185677dfcf372789ffd32a4f9a07f6ade0d012 100644 (file)
@@ -38,6 +38,11 @@ wxMSW:
 - Switching page of a hidden notebook doesn't lose focus (Jamie Gadd).
 - Removed wxImageList *GetImageList(int) const.
 
+wxGTK:
+
+- Fixed problem with choice editor in wxGrid whereby the editor
+  lost focus when the combobox menu was shown.
+
 wxWinCE:
 
 - Pressing build-in joystick on WinCE phones fires wxEVT_JOY_BUTTON_DOWN event.
index c52334ed7cd0dd640eddf0fe6d156811245d10af..99090322c0f798d3bbcacffe32497a687da31e0b 100644 (file)
@@ -1488,7 +1488,13 @@ void wxGridCellChoiceEditor::BeginEdit(int row, int col, wxGrid* grid)
     Combo()->SetFocus();
 
     if (evtHandler)
+    {
+        // When dropping down the menu, a kill focus event
+        // happens after this point, so we can't reset the flag yet.
+#if !defined(__WXGTK20__)
         evtHandler->SetInSetFocus(false);
+#endif
+    }
 }
 
 bool wxGridCellChoiceEditor::EndEdit(int row, int col,