summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-02-16 22:09:55 +0100
committerTomasz Chabora <kobewi4e@gmail.com>2020-02-16 22:09:55 +0100
commitb23f141ba4743410f389dbe3006b71a90d6ec0e1 (patch)
treeef4fe12ffa8b097833741e0e3f373b57665a0052 /editor
parent7724b842f61e570fcfb1254b12df8c9dc30375c6 (diff)
Allow for continuous deletion/duplication of lines
Diffstat (limited to 'editor')
-rw-r--r--editor/code_editor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index e898bc54dd..ca0ac70ff7 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -691,6 +691,16 @@ void CodeTextEditor::_input(const Ref<InputEvent> &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<InputEvent> &p_event) {