commit a877cdb1963f01d27b4bd0d194de928223cb5ae5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Oct 21 18:08:39 2020 +0200
Do not set language from keyboard in passthru setting --- src/Cursor.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 39083e5..ee54ace 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()); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs