LineEdit/TextEdit: Add Shift+Delete shortcut for cut

This commit is contained in:
Ignacio Etcheverry 2016-03-15 13:03:38 +01:00
parent 4dfd0c1863
commit fac027cb14
2 changed files with 11 additions and 0 deletions

View file

@ -274,6 +274,11 @@ void LineEdit::_input_event(InputEvent p_event) {
} break;
case KEY_DELETE: {
if (k.mod.shift && !k.mod.command && !k.mod.alt && editable) {
cut_text();
break;
}
if (editable) {
undo_text = text;
if (selection.enabled)