Skip to content

Commit

Permalink
Correctly set up shortcut context in the shader editor
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Nov 8, 2023
1 parent 3e7f638 commit e7dba3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e7dba3b

Please sign in to comment.