]> git.saurik.com Git - wxWidgets.git/commitdiff
F2 enables edit in place
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Feb 2000 02:29:38 +0000 (02:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Feb 2000 02:29:38 +0000 (02:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 0d3a57eb3594ca45cf194ed0a5277f4fa03acc3d..831c669c75c4e070f172ec6b32072b532d2ad8f2 100644 (file)
@@ -4748,11 +4748,12 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
                 // Otherwise fall through to default
 
             default:
-                // alphanumeric keys enable the cell edit control
+                // alphanumeric keys or F2 (special key just for this) enable
+                // the cell edit control
                 if ( !(event.AltDown() ||
                        event.MetaDown() ||
                        event.ControlDown()) &&
-                     isalnum(event.KeyCode()) &&
+                     (isalnum(event.KeyCode()) || event.KeyCode() == WXK_F2) &&
                      !IsCellEditControlEnabled() &&
                      CanEnableCellControl() )
                 {