X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77bfc423106542de3ab9c31721dbee6befe2092b..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/demo/GridCustEditor.py diff --git a/wxPython/demo/GridCustEditor.py b/wxPython/demo/GridCustEditor.py index 55a8f9a410..639b3fffeb 100644 --- a/wxPython/demo/GridCustEditor.py +++ b/wxPython/demo/GridCustEditor.py @@ -125,9 +125,10 @@ class MyCellEditor(gridlib.PyGridCellEditor): """ self.log.write("MyCellEditor: IsAcceptedKey: %d\n" % (evt.GetKeyCode())) - ## Oops, there's a bug here, we'll have to do it ourself.. - ##return self.base_IsAcceptedKey(evt) + ## We can ask the base class to do it + #return self.base_IsAcceptedKey(evt) + # or do it ourselves return (not (evt.ControlDown() or evt.AltDown()) and evt.GetKeyCode() != wx.WXK_SHIFT)