1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Script editor: Rename 'Clone Down' to 'Duplicate Selection'

Fixes #36670.

(cherry picked from commit d41f4aca77)
This commit is contained in:
Rémi Verschelde
2021-06-29 12:09:07 +02:00
parent f0e76377cb
commit b35e61ba85
8 changed files with 18 additions and 18 deletions

View File

@@ -712,8 +712,8 @@ void CodeTextEditor::_input(const Ref<InputEvent> &event) {
accept_event();
return;
}
if (ED_IS_SHORTCUT("script_text_editor/clone_down", key_event)) {
clone_lines_down();
if (ED_IS_SHORTCUT("script_text_editor/duplicate_selection", key_event)) {
duplicate_selection();
accept_event();
return;
}
@@ -1249,7 +1249,7 @@ void CodeTextEditor::delete_lines() {
text_editor->end_complex_operation();
}
void CodeTextEditor::clone_lines_down() {
void CodeTextEditor::duplicate_selection() {
const int cursor_column = text_editor->cursor_get_column();
int from_line = text_editor->cursor_get_line();
int to_line = text_editor->cursor_get_line();