From: Jean-Marc Lasgouttes Date: Wed, 21 Oct 2020 16:08:39 +0000 (+0200) Subject: Do not set language from keyboard in passthru setting X-Git-Tag: lyx-2.4.0dev-acb2ca7b~21 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d94bd072647fca813df464c6ef14d84445c603ca;p=features.git Do not set language from keyboard in passthru setting --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 7197b91cf2..b30ed0f794 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2399,7 +2399,8 @@ bool notifyCursorLeavesOrEnters(Cursor const & old, Cursor & cur) void Cursor::setLanguageFromInput() { - if (!lyxrc.respect_os_kbd_language) + if (!lyxrc.respect_os_kbd_language + || (inTextEd() && paragraph().isPassthru()) return; string const & code = theApp()->inputLanguageCode(); Language const * lang = languages.getFromCode(code, buffer()->getLanguages());