diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-11-08 13:07:31 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-11-08 13:07:31 +0100 |
commit | e7dba3b0646aaa51e71aeb89c135d4939d27cfa0 (patch) | |
tree | 0801d319471cb1cf54500597d7ee3dd2a954a711 /editor/plugins/shader_editor_plugin.cpp | |
parent | 3e7f638d7b574785f521beafaf52a6ad95be016f (diff) | |
download | redot-engine-e7dba3b0646aaa51e71aeb89c135d4939d27cfa0.tar.gz |
Correctly set up shortcut context in the shader editor
Diffstat (limited to 'editor/plugins/shader_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 2f186d00b4..1bc58c04d4 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/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(); |