summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorMason Ashbridge <masonjash@gmail.com>2017-08-24 01:22:00 -0400
committerMason Ashbridge <masonjash@gmail.com>2017-08-24 01:28:08 -0400
commit9def31120c883cd73564753fc4df1237a5020584 (patch)
tree09a10c37a771455685b73f5a02189b416baefe23 /scene/gui
parent05a678534433997c71f542ae1b3cecd35abde298 (diff)
Script editor: fixed no key repeat for CTRL+Y
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 2c50b4e854..7f5e7fdf30 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -2736,6 +2736,15 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
else
undo();
} break;
+ case KEY_Y: {
+
+ if (!k->get_command()) {
+ scancode_handled = false;
+ break;
+ }
+
+ redo();
+ } break;
case KEY_V: {
if (readonly) {
break;