浏览代码

Fix script editor zoom shortcuts not marking events as accepted.

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

+ 3 - 0
editor/code_editor.cpp

@@ -824,12 +824,15 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
 		if (k->is_pressed()) {
 			if (ED_IS_SHORTCUT("script_editor/zoom_in", p_event)) {
 				_zoom_in();
+				accept_event();
 			}
 			if (ED_IS_SHORTCUT("script_editor/zoom_out", p_event)) {
 				_zoom_out();
+				accept_event();
 			}
 			if (ED_IS_SHORTCUT("script_editor/reset_zoom", p_event)) {
 				_reset_zoom();
+				accept_event();
 			}
 		}
 	}