diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 1219e7047e7..002879c6bf8 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -567,7 +567,7 @@ void LineEdit::_gui_input(Ref p_event) { if (handled) { accept_event(); - } else if (!k->get_command()) { + } else if (!k->get_command() || (k->get_command() && k->get_alt())) { if (k->get_unicode() >= 32 && k->get_scancode() != KEY_DELETE) { if (editable) { diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 7acb321e9c7..a2de4004229 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3735,7 +3735,7 @@ void TextEdit::_gui_input(const Ref &p_gui_input) { return; } - if (!scancode_handled && !k->get_command()) { // For German keyboards. + if (!scancode_handled && (!k->get_command() || (k->get_command() && k->get_alt()))) { // For German keyboards. if (k->get_unicode() >= 32) {