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

Fixes #36670.
This commit is contained in:
Rémi Verschelde 2021-06-29 12:09:07 +02:00
parent 8fb7a9f023
commit d41f4aca77
No known key found for this signature in database
GPG key ID: C3336907360768E1
8 changed files with 18 additions and 18 deletions

View file

@ -738,8 +738,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;
}
@ -1287,7 +1287,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();