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:
		@@ -1110,6 +1110,12 @@ bool wxWindowQt::QtHandleWheelEvent ( QWidget *WXUNUSED( handler ), QWheelEvent
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
bool wxWindowQt::QtHandleKeyEvent ( QWidget *WXUNUSED( handler ), QKeyEvent *event )
 | 
					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 wxUSE_ACCEL
 | 
				
			||||||
    if ( m_processingShortcut )
 | 
					    if ( m_processingShortcut )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user