Add missing IsAcceptedKey to the wxGridCellEditor interface

This commit is contained in:
Robin Dunn
2020-03-13 11:50:30 -07:00
parent 40cbea298d
commit 5c039e080c

View File

@@ -555,6 +555,16 @@ public:
*/ */
virtual void StartingKey(wxKeyEvent& event); 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. Returns the value currently in the editor control.
*/ */