From e7dba3b0646aaa51e71aeb89c135d4939d27cfa0 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Wed, 8 Nov 2023 13:07:31 +0100 Subject: [PATCH] Correctly set up shortcut context in the shader editor --- editor/plugins/shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 2f186d00b45..1bc58c04d4b 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();