]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix typo in wxKeyEvent::GetKeyCode() documentation example.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2012 13:25:41 +0000 (13:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2012 13:25:41 +0000 (13:25 +0000)
Use GetKeyCode() instead of (undefined) "keycode" variable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/event.h

index 56193eda9f51d51cd8b857392cc76a27cdfd562c..0a9a64d0f88eb217f4ef1be30e02c3f5d75708e7 100644 (file)
@@ -1414,7 +1414,7 @@ public:
                 else
                 {
                     // It's a special key, deal with all the known ones:
-                    switch ( keycode )
+                    switch ( GetKeyCode() )
                     {
                         case WXK_LEFT:
                         case WXK_RIGHT: