]> git.lyx.org Git - features.git/commitdiff
Do not set language from keyboard in passthru setting
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Oct 2020 16:08:39 +0000 (18:08 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Oct 2020 16:09:31 +0000 (18:09 +0200)
src/Cursor.cpp

index 7197b91cf26951477c8515f69915c3bc686dc0d5..b30ed0f7942628482790e4be4837ebfc01a7be8b 100644 (file)
@@ -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());