]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
fixed creation of the dialogs with a simple (non 3D, non resizeable) border; also...
[wxWidgets.git] / src / generic / grid.cpp
index fc1b7ced2a60aa26344aa7c9e52fbbf46f09b973..b6afb0c214aab8b69b1c46d0e6910a1694913d85 100644 (file)
@@ -5832,7 +5832,14 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
                          || editor->IsAcceptedKey(event) )
                     {
                         EnableCellEditControl();
-                        editor->StartingKey(event);
+
+                        // the editor could be not shown for a variety of
+                        // reasons (i.e. blocked by the app or whatever), so
+                        // check if it really was created
+                        if ( m_cellEditCtrlEnabled )
+                        {
+                            editor->StartingKey(event);
+                        }
                     }
                     else
                     {