X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83625579234e2dfd760c7380d267f0f0c1e53be6..9ab5ef13b58ccdfbc7b889785b928ef0b3ae1443:/wxPython/demo/GridCustEditor.py diff --git a/wxPython/demo/GridCustEditor.py b/wxPython/demo/GridCustEditor.py index f90ea1f2f5..668dbdc428 100644 --- a/wxPython/demo/GridCustEditor.py +++ b/wxPython/demo/GridCustEditor.py @@ -124,7 +124,8 @@ class MyCellEditor(wxPyGridCellEditor): ## Oops, there's a bug here, we'll have to do it ourself.. ##return self.base_IsAcceptedKey(evt) - return not evt.HasModifiers() and evt.GetKeyCode() != WXK_SHIFT + return (not (evt.ControlDown() or evt.AltDown()) and + evt.GetKeyCode() != WXK_SHIFT) def StartingKey(self, evt):