commit ab3f2def7578cfe877a8424bee0a165ff5bc9e8c
Author: Koji Yokota <[email protected]>
Date:   Tue Jul 22 19:57:13 2025 +0900

    Add a comment
---
 src/frontends/qt/GuiInputMethod.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/frontends/qt/GuiInputMethod.cpp 
b/src/frontends/qt/GuiInputMethod.cpp
index 60c612af08..7981b74eae 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -121,6 +121,8 @@ GuiInputMethod::~GuiInputMethod()
 
 void GuiInputMethod::toggleInputMethodAcceptance(){
 #if defined(Q_OS_WIN) || defined (Q_CYGWIN_WIN) || defined (Q_OS_LINUX)
+       // Since QInputMethod::locale() doesn't work on these systems, use 
language
+       // at the cursor point to infer the current input language as a second 
best
        std::string lang = d->cur_->getFont().language()->lang();
        if (lang == "chinese-simplified" || lang == "chinese-traditional" ||
                lang == "korean" || lang == "japanese")
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to