diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py index 0dd0be32..d96ab603 100644 --- a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py @@ -11,6 +11,7 @@ else: # It's a special key, deal with all the known ones: + keycode = event.GetKeyCode() if keycode in [wx.WXK_LEFT, wx.WXK_RIGHT]: # move cursor ... MoveCursor()