diff options
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 5 |
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); |