Do not set language from keyboard in passthru setting

This commit is contained in:
Jean-Marc Lasgouttes 2020-10-21 18:08:39 +02:00
parent 5d0b1b640b
commit d94bd07264

View 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());