Skip to content

Commit e185ab8

Browse files
committed
Rephrase the modifier key timeout option
1 parent e787b85 commit e185ab8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/lib/fcitx/globalconfig.cpp

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@
77

88
#include "globalconfig.h"
99
#include <cstdint>
10+
#include <memory>
11+
#include <string>
12+
#include <vector>
1013
#include "fcitx-config/configuration.h"
1114
#include "fcitx-config/enum.h"
1215
#include "fcitx-config/iniparser.h"
1316
#include "fcitx-config/option.h"
17+
#include "fcitx-config/rawconfig.h"
1418
#include "fcitx-utils/eventloopinterface.h"
1519
#include "fcitx-utils/i18n.h"
20+
#include "fcitx-utils/key.h"
1621
#include "fcitx-utils/macros.h"
22+
#include "fcitx-utils/misc.h"
1723
#include "config.h"
1824
#include "inputcontextmanager.h"
1925

@@ -141,14 +147,15 @@ FCITX_CONFIGURATION(
141147
modifierOnlyKeyTimeout{
142148
this,
143149
"ModifierOnlyKeyTimeout",
144-
_("Modifier Only Hotkey Timeout in Milliseconds"),
150+
_("Time limit in milliseconds for triggering modifier key "
151+
"shortcuts"),
145152
250,
146153
IntConstrain{-1, 5000},
147154
{},
148155
ToolTipAnnotation{
149156
_("When using modifier only hotkey, the action may "
150-
"only be triggered if it is released within the timeout. -1 "
151-
"means there is no timeout.")}};);
157+
"only be triggered if the modifier key is released within "
158+
"the timeout. -1 means there is no limit.")}};);
152159

153160
FCITX_CONFIGURATION(
154161
BehaviorConfig, Option<bool> activeByDefault{this, "ActiveByDefault",

0 commit comments

Comments
 (0)