commit 566ea5c3d65cb1b4e96c18a43d68e0fc87c66d06
Author: Koji Yokota <[email protected]>
Date: Mon Jul 21 21:59:22 2025 +0900
Minimize effect of non-working QInputMethod::locale() on Linux & Win
Make auto switch-off of IM in command mode available on Linux and Windows.
It does not fix failure in INSET::MATH_MODE yet.
---
src/frontends/qt/GuiInputMethod.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp
b/src/frontends/qt/GuiInputMethod.cpp
index cec2b6f716..3573a8daef 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -118,9 +118,9 @@ GuiInputMethod::~GuiInputMethod()
void GuiInputMethod::toggleInputMethodAcceptance(){
// note that d->cur_->inset() is a cache so it lags from actual key
moves
- if (d->is_cjk_locale &&
- (d->cur_->inset().currentMode() == Inset::MATH_MODE ||
- guiApp->isInCommandMode()))
+ if ((d->is_cjk_locale &&
+ d->cur_->inset().currentMode() == Inset::MATH_MODE) ||
+ guiApp->isInCommandMode())
d->im_state_.enabled_ = false;
else
d->im_state_.enabled_ = true;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs