Merge pull request #84614 from YuriSizov/editor-set-shader-shortcut-context

Correctly set up shortcut context in the shader editor
This commit is contained in:
Rémi Verschelde 2023-11-08 19:11:10 +01:00
commit 57a0ac27d5
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();