diff --git a/src/im/keyboard/keyboard.h b/src/im/keyboard/keyboard.h index 91a431bb..ff5573da 100644 --- a/src/im/keyboard/keyboard.h +++ b/src/im/keyboard/keyboard.h @@ -90,14 +90,15 @@ FCITX_CONFIGURATION( "matching sequence.")}}; SubConfigOption spell{this, "Spell", _("Spell"), "fcitx://config/addon/spell"}; - Option enableLongPress{this, "EnableLongPress", - _("Type special characters with long press"), - false}; - Option> blocklistApplicationForLongPress{ - this, - "LongPressBlocklist", - _("Applications disabled for long press"), - {"konsole"}}; + ConditionalHidden> enableLongPress{ + this, "EnableLongPress", _("Type special characters with long press"), + false}; + ConditionalHidden>> + blocklistApplicationForLongPress{ + this, + "LongPressBlocklist", + _("Applications disabled for long press"), + {"konsole"}}; ConditionalHidden longPress{ this, "LongPress", _("Long Press behavior"), "fcitx://config/addon/keyboard/longpress"};); diff --git a/src/lib/fcitx/globalconfig.cpp b/src/lib/fcitx/globalconfig.cpp index 49946c51..763e7282 100644 --- a/src/lib/fcitx/globalconfig.cpp +++ b/src/lib/fcitx/globalconfig.cpp @@ -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 enumerateWithTriggerKeys{