From a8f5256bfa1c7e66961ba64b1730a376ce9e3db7 Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Wed, 11 Dec 2024 11:06:32 +0800 Subject: [PATCH] fix: Sogou input method shift fails to switch between Chinese and English Disable the default shortcut key of altTriggerKeys Log: Sogou input method shift fails to switch between Chinese and English pms: BUG-288893 --- debian/changelog | 6 ++++++ ...he-default-shortcut-key-for-altTriggerKeys.patch | 13 +++++++++++++ debian/patches/series | 1 + 3 files changed, 20 insertions(+) create mode 100644 debian/patches/0010-disable-the-default-shortcut-key-for-altTriggerKeys.patch diff --git a/debian/changelog b/debian/changelog index 4175677c..ab733e5d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +fcitx5 (5.1.11-2deepin2) unstable; urgency=medium + + * Disable the default shortcut key for altTriggerKeys + + -- Wang Yu Wed, 11 Dec 2024 11:03:51 +0800 + fcitx5 (5.1.11-2deepin1) unstable; urgency=medium * New upstream release. diff --git a/debian/patches/0010-disable-the-default-shortcut-key-for-altTriggerKeys.patch b/debian/patches/0010-disable-the-default-shortcut-key-for-altTriggerKeys.patch new file mode 100644 index 00000000..b7802466 --- /dev/null +++ b/debian/patches/0010-disable-the-default-shortcut-key-for-altTriggerKeys.patch @@ -0,0 +1,13 @@ +Index: fcitx5/src/lib/fcitx/globalconfig.cpp +=================================================================== +--- fcitx5.orig/src/lib/fcitx/globalconfig.cpp ++++ fcitx5/src/lib/fcitx/globalconfig.cpp +@@ -44,7 +44,7 @@ FCITX_CONFIGURATION( + this, + "AltTriggerKeys", + _("Temporally switch between first and current Input Method"), +- {Key("Shift_L")}, ++ {}, + KeyListConstrain({KeyConstrainFlag::AllowModifierLess, + KeyConstrainFlag::AllowModifierOnly})}; + KeyListOption enumerateForwardKeys{ diff --git a/debian/patches/series b/debian/patches/series index 478e99af..ff1635ed 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ 0007-Add-Sogou-to-the-default-zh_CN-input-method-list.patch 0008-fix-remove-the-restart-icon.patch 0009-configtool-opens-dde-control-center-when-using-deepin25.patch +0010-disable-the-default-shortcut-key-for-altTriggerKeys.patch