From 03a9b9cb7b38ce441fe9c6d30885a650cff9cf4b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 17 Jan 2008 08:40:17 +0000 Subject: [PATCH] Qt4 - Hotkeys: fix the bug about modifiers that empeached you to have modifiers + key. --- modules/gui/qt4/components/preferences_widgets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 0889e4670f..3a3675062e 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -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 ); -- 2.39.5