Skip to content

Commit 7dedf40

Browse files
authored
don't copy input mode on sharing state (#53)
1 parent 9de0de1 commit 7dedf40

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/cskk.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,13 @@ void FcitxCskkContext::applyConfig() {
407407
skk_context_set_period_style(context_, *config.periodStyle);
408408
skk_context_set_comma_style(context_, *config.commaStyle);
409409
}
410-
void FcitxCskkContext::copyTo(InputContextProperty *context) {
411-
auto otherContext = dynamic_cast<FcitxCskkContext *>(context);
412-
skk_context_set_input_mode(otherContext->context(),
413-
skk_context_get_input_mode(context_));
410+
void FcitxCskkContext::copyTo(InputContextProperty *) {
411+
// auto otherContext = dynamic_cast<FcitxCskkContext *>(context);
412+
// Ignored.
413+
// Even if fcitx5 global option is set to share input state、it only shares
414+
// the selection of the addon for this input method.
415+
// fcitx5-cskk will just hold each cskkcontext in each input context's
416+
// property and shares nothing.
414417
}
415418
bool FcitxCskkContext::saveDictionary() {
416419
if (!context_) {

0 commit comments

Comments
 (0)