diff options
author | Mason Ashbridge <masonjash@gmail.com> | 2017-08-24 01:22:00 -0400 |
---|---|---|
committer | Mason Ashbridge <masonjash@gmail.com> | 2017-08-24 01:28:08 -0400 |
commit | 9def31120c883cd73564753fc4df1237a5020584 (patch) | |
tree | 09a10c37a771455685b73f5a02189b416baefe23 | |
parent | 05a678534433997c71f542ae1b3cecd35abde298 (diff) |
Script editor: fixed no key repeat for CTRL+Y
-rw-r--r-- | scene/gui/text_edit.cpp | 9 |
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; |