代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/kiran-cc-daemon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From b7495f653007f54a306eecd8b033c857359cee4a Mon Sep 17 00:00:00 2001
From: meizhigang <meizhigang@kylinsec.com.cn>
Date: Fri, 5 Jan 2024 09:25:02 +0800
Subject: [PATCH] fix(media-keys):Fix use shortcut key with shift
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-兼容快捷键按键shift
Related #25039
---
plugins/keybinding/shortcut-helper.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plugins/keybinding/shortcut-helper.cpp b/plugins/keybinding/shortcut-helper.cpp
index c459b53..a9dd62c 100644
--- a/plugins/keybinding/shortcut-helper.cpp
+++ b/plugins/keybinding/shortcut-helper.cpp
@@ -134,6 +134,7 @@ KeyState ShortCutHelper::get_keystate(XEvent *event)
gdk_keyval_convert_case(keyval, &lower, &upper);
key_state.key_symbol = lower;
+ consumed = (GdkModifierType)(consumed & (~GDK_SHIFT_MASK));
KLOG_DEBUG_KEYBINDING("The keystate is %0x and consumed is %0x.", event->xkey.state, consumed);
key_state.mods = event->xkey.state & ~consumed & GDK_MODIFIER_MASK;
return key_state;
@@ -213,7 +214,7 @@ bool ShortCutHelper::grab_keystate_change(Glib::RefPtr<Gdk::Window> root_window,
const KeyState &keystate,
bool is_grab)
{
- KLOG_PROFILE("symbol: %0x mods: %0x", keystate.key_symbol, keystate.mods);
+ KLOG_DEBUG_KEYBINDING("Grab key symbol: %0x mods: %0x", keystate.key_symbol, keystate.mods);
RETURN_VAL_IF_TRUE(keystate == NULL_KEYSTATE, true);
RETURN_VAL_IF_FALSE(keystate != INVALID_KEYSTATE, false);
@@ -287,4 +288,4 @@ bool ShortCutHelper::key_uses_keycode(const KeyState &key_state, uint32_t keycod
return false;
}
-} // namespace Kiran
\ No newline at end of file
+} // namespace Kiran
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。