TextEdit: Fix Shift+Delete shortcut not calling cut()
(cherry picked from commit abb720438f
)
This commit is contained in:
parent
41cc4ffe98
commit
cf0a586a3e
|
@ -1630,6 +1630,13 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
||||||
clear=(!k.mod.command || k.mod.shift || k.mod.alt );
|
clear=(!k.mod.command || k.mod.shift || k.mod.alt );
|
||||||
break;
|
break;
|
||||||
case KEY_DELETE:
|
case KEY_DELETE:
|
||||||
|
if (!k.mod.shift) {
|
||||||
|
accept_event();
|
||||||
|
clear=true; dobreak=true;
|
||||||
|
} else if (k.mod.command || k.mod.alt) {
|
||||||
|
dobreak=true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case KEY_BACKSPACE:
|
case KEY_BACKSPACE:
|
||||||
accept_event();
|
accept_event();
|
||||||
clear=true; dobreak=true;
|
clear=true; dobreak=true;
|
||||||
|
|
Loading…
Reference in New Issue