From a877cdb1963f01d27b4bd0d194de928223cb5ae5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 21 Oct 2020 18:08:39 +0200 Subject: [PATCH] Do not set language from keyboard in passthru setting --- src/Cursor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());