TextEdit: Fix Shift+Delete shortcut not calling cut()

This commit is contained in:
Ignacio Etcheverry 2016-03-19 13:22:44 +01:00
parent 15ba4d34c5
commit abb720438f
1 changed files with 7 additions and 0 deletions

View File

@ -1630,6 +1630,13 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
clear=(!k.mod.command || k.mod.shift || k.mod.alt );
break;
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:
accept_event();
clear=true; dobreak=true;