diff --git a/interface/wx/event.h b/interface/wx/event.h index 56193eda9f..0a9a64d0f8 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -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: