浏览代码

Allow for continuous deletion/duplication of lines

Tomasz Chabora 5 年之前
父节点
当前提交
b23f141ba4
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      editor/code_editor.cpp

+ 10 - 0
editor/code_editor.cpp

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