Qt4 - Hotkeys: fix the bug about modifiers that empeached you to have modifiers ...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 17 Jan 2008 08:40:17 +0000 (08:40 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 17 Jan 2008 08:40:17 +0000 (08:40 +0000)
modules/gui/qt4/components/preferences_widgets.cpp

index 0889e46..3a36750 100644 (file)
@@ -1204,7 +1204,8 @@ void KeyInputDialog::checkForConflicts( int i_vlckey )
 
 void KeyInputDialog::keyPressEvent( QKeyEvent *e )
 {
-    if( e->key() == Qt::Key_Tab ) return;
+    if( e->key() == Qt::Key_Tab ||
+        ( e->modifiers() > 0 && e->modifiers() != Qt::KeypadModifier ) ) return;
     int i_vlck = qtEventToVLCKey( e );
     selected->setText( qtr( "Key: " ) + VLCKeyToString( i_vlck ) );
     checkForConflicts( i_vlck );