mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Correctly set up shortcut context in the shader editor
This commit is contained in:
parent
3e7f638d7b
commit
e7dba3b064
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user