From 9a72beca560e6953cc67f7d9b442cd644ee63a0a Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Wed, 24 Mar 2021 02:03:36 +0300 Subject: [PATCH] Fix no mapping for SysReq key XKB_KEY_Sys_Req keysym is currently unmapped to any Qt::Key. Implication of this it is uncapable to participate in any keyboard shortcuts. This patch adds the missing mapping. Detected by testXkb KWin unit test Fixes: QTBUG-92087 Change-Id: I2440c218e265c5636fc1d2703f14d8bfe033967e Reviewed-by: Andrey Butirsky Reviewed-by: Shawn Rutledge Reviewed-by: Liang Qi Reviewed-by: Aleix Pol Gonzalez (cherry picked from commit 40193c2b6919875a714e84f5029ba2bcc1f9e258) Reviewed-by: Qt Cherry-pick Bot --- src/gui/platform/unix/qxkbcommon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/platform/unix/qxkbcommon.cpp b/src/gui/platform/unix/qxkbcommon.cpp index f8ef8479e17..459f6a16bb9 100644 --- a/src/gui/platform/unix/qxkbcommon.cpp +++ b/src/gui/platform/unix/qxkbcommon.cpp @@ -93,6 +93,7 @@ static constexpr const auto KeyTbl = qMakeArray( Xkb2Qt, Xkb2Qt, Xkb2Qt, + Xkb2Qt, Xkb2Qt<0x1005FF60, Qt::Key_SysReq>, // hardcoded Sun SysReq Xkb2Qt<0x1007ff00, Qt::Key_SysReq>, // hardcoded X386 SysReq