From 5c039e080c2dde4fbed8fa3eadd1c556fb662999 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 13 Mar 2020 11:50:30 -0700 Subject: [PATCH] Add missing IsAcceptedKey to the wxGridCellEditor interface --- interface/wx/grid.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 8999c5e694..360188af28 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -555,6 +555,16 @@ public: */ virtual void StartingKey(wxKeyEvent& event); + /** + Return @true to allow the given key to start editing: the base class + version only checks that the event has no modifiers. + + If the key is F2 (special), editing will always start and this + method will not be called at all (but StartingKey() will) + */ + virtual bool IsAcceptedKey(wxKeyEvent& event); + + /** Returns the value currently in the editor control. */