aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-07-07 15:28:07 -0400
committerKen Moore <ken@ixsystems.com>2017-07-07 15:28:07 -0400
commitd54b6b09d5af0914551c8319138b2ee83b170362 (patch)
tree218364232e9080d08bcda667d01275c22b2fbedb /src-qt5/core
parentOops - forgot to add an include. (diff)
downloadlumina-d54b6b09d5af0914551c8319138b2ee83b170362.tar.gz
lumina-d54b6b09d5af0914551c8319138b2ee83b170362.tar.bz2
lumina-d54b6b09d5af0914551c8319138b2ee83b170362.zip
Get the numbers/letters conversion working from X11->Qt
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index 17e90d3f..79d0e1fc 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -264,6 +264,11 @@ Qt::Key NativeWindowSystem::KeycodeToQt(int keycode){
else if(xcb_is_function_key(symbol)){ qDebug() << "Function Key"; }
else if(xcb_is_misc_function_key(symbol)){ qDebug() << "Misc Function Key"; }
else if(xcb_is_modifier_key(symbol)){ qDebug() << "Modifier Key"; }
+ else if(!QKeySequence(symbol).isEmpty()){
+ //One of the standard keys, go ahead and do a direct map
+ qDebug() << " -- [GOT MATCH]" << QKeySequence(symbol)[0];
+ return Qt::Key_unknown; //QKeySequence(symbol)[0]; //only ever one key in this method
+ }
//Now map this symbol to the appropriate Qt::Key enumeration
qDebug() << " -- Simple Qt Map:" << (Qt::Key)(symbol);
qDebug() << " -- Key Sequence Map:" << QKeySequence(symbol);
bgstack15