Revert "Do not set language from keyboard in passthru setting"

This reverts commit d94bd07264.
This commit is contained in:
Jean-Marc Lasgouttes 2020-10-21 18:50:31 +02:00
parent 526b4b0d79
commit 2395522aa7

View File

@ -2399,8 +2399,7 @@ bool notifyCursorLeavesOrEnters(Cursor const & old, Cursor & cur)
void Cursor::setLanguageFromInput()
{
if (!lyxrc.respect_os_kbd_language
|| (inTextEd() && paragraph().isPassthru())
if (!lyxrc.respect_os_kbd_language)
return;
string const & code = theApp()->inputLanguageCode();
Language const * lang = languages.getFromCode(code, buffer()->getLanguages());