Skip to content

Commit ce6227b

Browse files
authored
macos: hide long press options; change trigger key (#1113)
1 parent cd03fee commit ce6227b

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/im/keyboard/keyboard.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,15 @@ FCITX_CONFIGURATION(
9090
"matching sequence.")}};
9191
SubConfigOption spell{this, "Spell", _("Spell"),
9292
"fcitx://config/addon/spell"};
93-
Option<bool> enableLongPress{this, "EnableLongPress",
94-
_("Type special characters with long press"),
95-
false};
96-
Option<std::vector<std::string>> blocklistApplicationForLongPress{
97-
this,
98-
"LongPressBlocklist",
99-
_("Applications disabled for long press"),
100-
{"konsole"}};
93+
ConditionalHidden<isApple(), Option<bool>> enableLongPress{
94+
this, "EnableLongPress", _("Type special characters with long press"),
95+
false};
96+
ConditionalHidden<isApple(), Option<std::vector<std::string>>>
97+
blocklistApplicationForLongPress{
98+
this,
99+
"LongPressBlocklist",
100+
_("Applications disabled for long press"),
101+
{"konsole"}};
101102
ConditionalHidden<isApple(), SubConfigOption> longPress{
102103
this, "LongPress", _("Long Press behavior"),
103104
"fcitx://config/addon/keyboard/longpress"};);

src/lib/fcitx/globalconfig.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ FCITX_CONFIGURATION(
3333
this,
3434
"TriggerKeys",
3535
_("Trigger Input Method"),
36-
{Key("Control+space"), Key("Zenkaku_Hankaku"), Key("Hangul")},
36+
{isApple() ? Key("Control+Shift_L") : Key("Control+space"),
37+
Key("Zenkaku_Hankaku"), Key("Hangul")},
3738
KeyListConstrain({KeyConstrainFlag::AllowModifierLess,
3839
KeyConstrainFlag::AllowModifierOnly})};
3940
Option<bool> enumerateWithTriggerKeys{

0 commit comments

Comments
 (0)