Discard repeated keyup events in wxQT, thanks @seandepagnier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mariano Reingart 2014-09-29 03:16:03 +00:00
parent ab7e49deb8
commit 2c8b781550

View File

@ -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 )
{