diff --git a/src/qt/window.cpp b/src/qt/window.cpp index d3a37b92d7..6ffaadb1ec 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -1110,6 +1110,12 @@ bool wxWindowQt::QtHandleWheelEvent ( QWidget *WXUNUSED( handler ), QWheelEvent bool wxWindowQt::QtHandleKeyEvent ( QWidget *WXUNUSED( handler ), QKeyEvent *event ) { + // qt sends keyup and keydown events for autorepeat, but this is not + // normal for wx which only sends repeated keydown events + // discard repeated keyup events + if(event->isAutoRepeat() && event->type() == QEvent::KeyRelease) + return true; + #if wxUSE_ACCEL if ( m_processingShortcut ) {