From ed2c8380a9724cc06f71e3dff6611e24e8248bca Mon Sep 17 00:00:00 2001 From: Augenblick Date: Mon, 8 Apr 2024 17:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A3=9E=E8=A1=8C=E9=94=AE?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/corelib/global/qnamespace.h | 2 +- src/gui/kernel/qkeysequence.cpp | 2 +- src/platformsupport/input/xkbcommon/qxkbcommon.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index ad4150b3..e80129ba 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1085,7 +1085,7 @@ public: Key_Find = 0x01000122, Key_Undo = 0x01000123, Key_Redo = 0x01000124, - + Key_RFKill = 0x01000125, Key_MediaLast = 0x0100ffff, // Keypad navigation keys diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp index 23be5e1a..b6a220c5 100644 --- a/src/gui/kernel/qkeysequence.cpp +++ b/src/gui/kernel/qkeysequence.cpp @@ -588,7 +588,7 @@ static const struct { { Qt::Key_TopMenu, QT_TRANSLATE_NOOP("QShortcut", "Top Menu") }, { Qt::Key_PowerDown, QT_TRANSLATE_NOOP("QShortcut", "Power Down") }, { Qt::Key_Suspend, QT_TRANSLATE_NOOP("QShortcut", "Suspend") }, - + { Qt::Key_RFKill, QT_TRANSLATE_NOOP("QShortcut", "RFKill") }, { Qt::Key_MicMute, QT_TRANSLATE_NOOP("QShortcut", "Microphone Mute") }, { Qt::Key_Red, QT_TRANSLATE_NOOP("QShortcut", "Red") }, diff --git a/src/platformsupport/input/xkbcommon/qxkbcommon.cpp b/src/platformsupport/input/xkbcommon/qxkbcommon.cpp index 0c8545b8..4d6beb1b 100644 --- a/src/platformsupport/input/xkbcommon/qxkbcommon.cpp +++ b/src/platformsupport/input/xkbcommon/qxkbcommon.cpp @@ -423,7 +423,8 @@ static constexpr const auto KeyTbl = qMakeArray( Xkb2Qt, Xkb2Qt, Xkb2Qt, - Xkb2Qt + Xkb2Qt, + Xkb2Qt >::Data{} );