From 15162906e4750d48cac82b58cec39fdfa0e3a465 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sun, 16 Feb 2020 22:09:55 +0100 Subject: [PATCH] Allow for continuous deletion/duplication of lines (cherry picked from commit b23f141ba4743410f389dbe3006b71a90d6ec0e1) --- editor/code_editor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index e05ace53daa..d0e69b7adc8 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -686,6 +686,16 @@ void CodeTextEditor::_input(const Ref &event) { accept_event(); return; } + if (ED_IS_SHORTCUT("script_text_editor/delete_line", key_event)) { + delete_lines(); + accept_event(); + return; + } + if (ED_IS_SHORTCUT("script_text_editor/clone_down", key_event)) { + clone_lines_down(); + accept_event(); + return; + } } void CodeTextEditor::_text_editor_gui_input(const Ref &p_event) {