summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-19 13:54:02 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-03-19 13:54:02 +0100
commitbf13f29b15d6c61a1492783ad278e64f0eca6ed2 (patch)
tree983256edef9664e2c138fbc4973b50c419f924cc
parent77949f02d95966ee49423844f7e20415f908d5a3 (diff)
parentabb720438fcdc2c9e4d82bf28cbcfcd78bb7d001 (diff)
Merge pull request #4094 from neikeq/pr-fix-4062
TextEdit: Fix Shift+Delete shortcut not calling cut()
-rw-r--r--scene/gui/text_edit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 0fc8e39fef..3948de7689 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -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;