Explorar o código

Allow for continuous deletion/duplication of lines

(cherry picked from commit b23f141ba4743410f389dbe3006b71a90d6ec0e1)
Tomasz Chabora %!s(int64=5) %!d(string=hai) anos
pai
achega
15162906e4
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      editor/code_editor.cpp

+ 10 - 0
editor/code_editor.cpp

@@ -686,6 +686,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) {