Skip to content

Commit

Permalink
macos: hide long press options; change trigger key (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Aug 27, 2024
1 parent cd03fee commit ce6227b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/im/keyboard/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ FCITX_CONFIGURATION(
"matching sequence.")}};
SubConfigOption spell{this, "Spell", _("Spell"),
"fcitx://config/addon/spell"};
Option<bool> enableLongPress{this, "EnableLongPress",
_("Type special characters with long press"),
false};
Option<std::vector<std::string>> blocklistApplicationForLongPress{
this,
"LongPressBlocklist",
_("Applications disabled for long press"),
{"konsole"}};
ConditionalHidden<isApple(), Option<bool>> enableLongPress{
this, "EnableLongPress", _("Type special characters with long press"),
false};
ConditionalHidden<isApple(), Option<std::vector<std::string>>>
blocklistApplicationForLongPress{
this,
"LongPressBlocklist",
_("Applications disabled for long press"),
{"konsole"}};
ConditionalHidden<isApple(), SubConfigOption> longPress{
this, "LongPress", _("Long Press behavior"),
"fcitx://config/addon/keyboard/longpress"};);
Expand Down
3 changes: 2 additions & 1 deletion src/lib/fcitx/globalconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ FCITX_CONFIGURATION(
this,
"TriggerKeys",
_("Trigger Input Method"),
{Key("Control+space"), Key("Zenkaku_Hankaku"), Key("Hangul")},
{isApple() ? Key("Control+Shift_L") : Key("Control+space"),
Key("Zenkaku_Hankaku"), Key("Hangul")},
KeyListConstrain({KeyConstrainFlag::AllowModifierLess,
KeyConstrainFlag::AllowModifierOnly})};
Option<bool> enumerateWithTriggerKeys{
Expand Down

0 comments on commit ce6227b

Please sign in to comment.