Skip to content

Commit

Permalink
Merge pull request #84614 from YuriSizov/editor-set-shader-shortcut-c…
Browse files Browse the repository at this point in the history
…ontext

Correctly set up shortcut context in the shader editor
  • Loading branch information
akien-mga committed Nov 8, 2023
2 parents cfcb0a1 + e7dba3b commit 57a0ac2
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 57a0ac2

Please sign in to comment.