summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-26 08:16:33 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 08:16:33 +0200
commit1aa2d8ba1981f3d266b16681a2e614127b5c6c83 (patch)
tree9713b2ebebd061732618e1e3a817388976ca7d47 /editor/code_editor.cpp
parent43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff)
parentd2e651f403b7f583a66e37ef0331362ad70fd1c3 (diff)
downloadredot-engine-1aa2d8ba1981f3d266b16681a2e614127b5c6c83.tar.gz
Merge pull request #66553 from PucklaJ/duplicate_lines
Add Duplicate Lines shortcut to CodeTextEditor
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 876fef078b..9d2b54ef1a 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -805,6 +805,11 @@ void CodeTextEditor::input(const Ref<InputEvent> &event) {
accept_event();
return;
}
+ if (ED_IS_SHORTCUT("script_text_editor/duplicate_lines", key_event)) {
+ text_editor->duplicate_lines();
+ accept_event();
+ return;
+ }
}
void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {