diff options
-rw-r--r-- | lumina-config/KeyCatch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-config/KeyCatch.h b/lumina-config/KeyCatch.h index 50b44fad..78b34ac2 100644 --- a/lumina-config/KeyCatch.h +++ b/lumina-config/KeyCatch.h @@ -49,7 +49,8 @@ private slots: protected: void keyPressEvent(QKeyEvent *event){ //Don't catch if the main key is a modifier (shift,ctrl,alt,other..) - if( !mods.contains(event->key()) ){ + if(event->key()==0 && event->nativeVirtualKey()==0){ return; } //invalid "special" key + else if( !mods.contains(event->key()) ){ //Get the modifiers first (if any) if(!QKeySequence(event->modifiers()).toString().isEmpty()){// && event->nativeModifiers()!=16){ if(event->modifiers()!=Qt::KeypadModifier){ |