parameters: (self, evt)
docstring: Customizes char events
docstring_summary: Customizes char events
docstring_tokens: Customizes char events
function: def OnChar(self, evt):                          # Hook OnChar for custom behavior
          """Customizes char events """
          key = evt.GetKeyCode()
          if   key == wx.WXK_DOWN:
              self._grid.DisableCellEditControl()     # Commit the edit
              self._grid.MoveCursorDown(False)        # Change the current cell
          elif key == wx.WXK_UP:
              self._grid.DisableCellEditControl()     # Commit the edit
              self._grid.MoveCursorUp(False)          # Change the current cell
          elif key == wx.WXK_LEFT:
              self._grid.DisableCellEditControl()     # Commit the edit
              self._grid.MoveCursorLeft(False)        # Change the current cell
          elif key == wx.WXK_RIGHT:
              self._grid.DisableCellEditControl()     # Commit the edit
              self._grid.MoveCursorRight(False)       # Change the current cell
  
          evt.Skip()
function_tokens: def OnChar ( self , evt ) : # Hook OnChar for custom behavior key = evt . GetKeyCode ( ) if key == wx . WXK_DOWN : self . _grid . DisableCellEditControl ( ) # Commit the edit self . _grid . MoveCursorDown ( False ) # Change the current cell elif key == wx . WXK_UP : self . _grid . DisableCellEditControl ( ) # Commit the edit self . _grid . MoveCursorUp ( False ) # Change the current cell elif key == wx . WXK_LEFT : self . _grid . DisableCellEditControl ( ) # Commit the edit self . _grid . MoveCursorLeft ( False ) # Change the current cell elif key == wx . WXK_RIGHT : self . _grid . DisableCellEditControl ( ) # Commit the edit self . _grid . MoveCursorRight ( False ) # Change the current cell evt . Skip ( )