summaryrefslogtreecommitdiff
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-17 09:53:05 +0100
committerGitHub <noreply@github.com>2020-02-17 09:53:05 +0100
commitae5233a7ec9f7b48f3c673b538f632b0f395fa9b (patch)
tree6c380c3341c54a3431080dede7f383e71ff14009 /editor/code_editor.cpp
parentcd0c1735fd960746e677b71a97a2e20c4b184b91 (diff)
parentb23f141ba4743410f389dbe3006b71a90d6ec0e1 (diff)
Merge pull request #36284 from KoBeWi/scripting_bats
Allow for continuous deletion/duplication of lines
Diffstat (limited to 'editor/code_editor.cpp')
-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) {