diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-26 08:16:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-26 08:16:33 +0200 |
commit | 1aa2d8ba1981f3d266b16681a2e614127b5c6c83 (patch) | |
tree | 9713b2ebebd061732618e1e3a817388976ca7d47 /editor/code_editor.cpp | |
parent | 43b9e89a07bb0926fb66bddbf98981d25a5cccee (diff) | |
parent | d2e651f403b7f583a66e37ef0331362ad70fd1c3 (diff) | |
download | redot-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.cpp | 5 |
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) { |