summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2016-03-19 13:22:44 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2016-03-19 13:22:44 +0100
commitabb720438fcdc2c9e4d82bf28cbcfcd78bb7d001 (patch)
tree8fed8c20cdc73fc3e6240bff2f3505f06ede7442 /scene
parent15ba4d34c5040532b7926f6cfe670d081fee79b1 (diff)
TextEdit: Fix Shift+Delete shortcut not calling cut()
Diffstat (limited to 'scene')
-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;