From 6c8ee7e1db7082e4eed1656e96a8c6f339147428 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 17 Jan 2008 09:00:34 +0000 Subject: [PATCH] Do previous commit in a better way. --- modules/gui/qt4/components/preferences_widgets.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 3a3675062e..d957344a91 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -1205,7 +1205,12 @@ void KeyInputDialog::checkForConflicts( int i_vlckey ) void KeyInputDialog::keyPressEvent( QKeyEvent *e ) { if( e->key() == Qt::Key_Tab || - ( e->modifiers() > 0 && e->modifiers() != Qt::KeypadModifier ) ) return; + e->key() == Qt::Key_Shift || + e->key() == Qt::Key_Control || + e->key() == Qt::Key_Meta || + e->key() == Qt::Key_Alt || + e->key() == Qt::Key_AltGr ) + return; int i_vlck = qtEventToVLCKey( e ); selected->setText( qtr( "Key: " ) + VLCKeyToString( i_vlck ) ); checkForConflicts( i_vlck ); -- 2.39.2