diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-04 12:17:34 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-04 12:17:34 -0400 |
commit | 26c7cabbbebc794efb843e8b9904194bea737c11 (patch) | |
tree | e527b70404724870296e8b2fb56dda703175ac0e /lumina-config/KeyCatch.h | |
parent | Fix lumina pkg-plist, fix compiling from ports and add the mkport.sh script (diff) | |
download | lumina-26c7cabbbebc794efb843e8b9904194bea737c11.tar.gz lumina-26c7cabbbebc794efb843e8b9904194bea737c11.tar.bz2 lumina-26c7cabbbebc794efb843e8b9904194bea737c11.zip |
Apply the recent keypress bugfix/debugging to the new repo source as well.
Diffstat (limited to 'lumina-config/KeyCatch.h')
-rw-r--r-- | lumina-config/KeyCatch.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lumina-config/KeyCatch.h b/lumina-config/KeyCatch.h index 59bd44a2..50b44fad 100644 --- a/lumina-config/KeyCatch.h +++ b/lumina-config/KeyCatch.h @@ -13,6 +13,7 @@ #include <QDialog> #include <QKeyEvent> #include <QString> +#include <QDebug> #include "ui_KeyCatch.h" @@ -73,7 +74,7 @@ protected: } //Now get the main key qkeys.replace("+"," "); - if(QKeySequence(event->key()).toString().isEmpty()){ + if(event->key()==0){ qkeys.append( QString::number(event->nativeVirtualKey()) ); }else{ qkeys.append( QKeySequence(event->key()).toString() ); //also save the text version (for display) @@ -86,6 +87,11 @@ protected: qkeys.remove("Shift "); } } + qDebug() << "Found Key Press:"; + qDebug() << " - Native Virtual Key:" << event->nativeVirtualKey(); + qDebug() << " - Qt Key Sequence:" << QKeySequence(event->key()).toString(); + qDebug() << " - Full Detected Sequence (Display):" << qkeys; + qDebug() << " - Full Detected Sequence (backend):" << xkeys; //Now close the dialog cancelled=false; this->close(); |