From: Robin Dunn Date: Mon, 11 Dec 2000 02:55:03 +0000 (+0000) Subject: a fix in the demo X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d3f175108be4a2c7db64e31b7d36189e036b5597?ds=inline a fix in the demo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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):