Enable the default behavior for hiding virtual keyboard supported by fcitx5.

This commit is contained in:
Your Name 2022-11-15 19:26:10 +08:00 committed by liulinsong
parent cf90a8ad6f
commit 32e33438e3
2 changed files with 8 additions and 4 deletions

View File

@ -110,15 +110,17 @@ public:
list << arg2;
}
// Qt has good support for virtual keyboard, so we should disable
// Qt has good support for showing virtual keyboard, so we should disable
// the default behavior supported by fcitx5
FcitxQtStringKeyValue useDefaultFocusInBehavior;
useDefaultFocusInBehavior.setKey("useDefaultFocusInBehavior");
useDefaultFocusInBehavior.setValue("false");
list << useDefaultFocusInBehavior;
// Qt has poor support for hiding virtual keyboard, so we should enable
// the default behavior supported by fcitx5
FcitxQtStringKeyValue useDefaultFocusOutBehavior;
useDefaultFocusOutBehavior.setKey("useDefaultFocusOutBehavior");
useDefaultFocusOutBehavior.setValue("false");
useDefaultFocusOutBehavior.setValue("true");
list << useDefaultFocusOutBehavior;
auto result = improxy_->CreateInputContext(list);

View File

@ -110,15 +110,17 @@ public:
list << arg2;
}
// Qt has good support for virtual keyboard, so we should disable
// Qt has good support for showing virtual keyboard, so we should disable
// the default behavior supported by fcitx5
FcitxQtStringKeyValue useDefaultFocusInBehavior;
useDefaultFocusInBehavior.setKey("useDefaultFocusInBehavior");
useDefaultFocusInBehavior.setValue("false");
list << useDefaultFocusInBehavior;
// Qt has poor support for hiding virtual keyboard, so we should enable
// the default behavior supported by fcitx5
FcitxQtStringKeyValue useDefaultFocusOutBehavior;
useDefaultFocusOutBehavior.setKey("useDefaultFocusOutBehavior");
useDefaultFocusOutBehavior.setValue("false");
useDefaultFocusOutBehavior.setValue("true");
list << useDefaultFocusOutBehavior;
auto result = improxy_->CreateInputContext(list);