LineEdit/TextEdit: Add Shift+Delete shortcut for cut
(cherry picked from commit fac027cb14)
This commit is contained in:
committed by
Rémi Verschelde
parent
a701c6ff68
commit
cacf7d136f
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user