]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Qt4 - Hotkeys: fix the bug about modifiers that empeached you to have modifiers ...
[vlc] / 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 );