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-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a877cdb1963f01d27b4bd0d194de928223cb5ae5;p=features.git Do not set language from keyboard in passthru setting --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 39083e5043..ee54ace608 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2399,7 +2399,9 @@ 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());