summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-27 02:11:58 +0200
committerGitHub <noreply@github.com>2017-08-27 02:11:58 +0200
commita6e37ae2bf57467ed2dae34756e27959f23776c0 (patch)
tree6207df73bae86ee7574c245278a95dea503677b2
parent9c71da00aa02680659131656f662462f37235bd3 (diff)
parent9def31120c883cd73564753fc4df1237a5020584 (diff)
Merge pull request #10600 from MasonAsh/fix-10596
Script editor: fixed no key repeat for CTRL+Y
-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 a5de50af99..d585562dc6 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;