]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridCustEditor.py
don't process VK_OEM_XXX key presses
[wxWidgets.git] / wxPython / demo / GridCustEditor.py
index f90ea1f2f5ced8a9bc0977bd3fa68e1d36c143da..a24cbf5fa15b22f8c89fc127380a9db1e0dabdbe 100644 (file)
@@ -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):
@@ -210,6 +211,7 @@ class GridEditorTest(wxGrid):
         self.SetColSize(1, 150)
         self.SetColSize(2, 150)
 
+
 #---------------------------------------------------------------------------
 
 class TestFrame(wxFrame):