]> git.sesse.net Git - vlc/commitdiff
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 0889e4670fe413eec9d3c1936e4d3d9c7ad1fab6..3a3675062eb04abfb1e35d0b484b7b31232bd959 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 );