[LyX/master] Do not set language from keyboard in passthru setting

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Oct 21 15:41:19 UTC 2020


commit d94bd072647fca813df464c6ef14d84445c603ca
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Oct 21 18:08:39 2020 +0200

    Do not set language from keyboard in passthru setting
---
 src/Cursor.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 7197b91..b30ed0f 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());


More information about the lyx-cvs mailing list