Browse Source

Correctly set up shortcut context in the shader editor

Yuri Sizov 1 năm trước cách đây
mục cha
commit
e7dba3b064
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/plugins/shader_editor_plugin.cpp

+ 1 - 0
editor/plugins/shader_editor_plugin.cpp

@@ -609,6 +609,7 @@ ShaderEditorPlugin::ShaderEditorPlugin() {
 	vb->add_child(menu_hb);
 	file_menu = memnew(MenuButton);
 	file_menu->set_text(TTR("File"));
+	file_menu->set_shortcut_context(main_split);
 	file_menu->get_popup()->add_item(TTR("New Shader"), FILE_NEW);
 	file_menu->get_popup()->add_item(TTR("New Shader Include"), FILE_NEW_INCLUDE);
 	file_menu->get_popup()->add_separator();