X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77bfc423106542de3ab9c31721dbee6befe2092b..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/demo/GridCustEditor.py?ds=inline 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)