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

Allow for continuous deletion/duplication of lines

This commit is contained in:
Tomasz Chabora
2020-02-16 22:09:55 +01:00
parent 7724b842f6
commit b23f141ba4

View File

@@ -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) {