diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-08 19:11:10 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-08 19:11:10 +0100 |
| commit | 57a0ac27d5f9015b38c0e7b2f50432ce57c72785 (patch) | |
| tree | 88e75c55dd7b573bad263465e345ff6ceb76c8e0 | |
| parent | cfcb0a1efc7a6caa3d0a8760e39098a45bb4fee0 (diff) | |
| parent | e7dba3b0646aaa51e71aeb89c135d4939d27cfa0 (diff) | |
| download | redot-engine-57a0ac27d5f9015b38c0e7b2f50432ce57c72785.tar.gz | |
Merge pull request #84614 from YuriSizov/editor-set-shader-shortcut-context
Correctly set up shortcut context in the shader editor
| -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(); |
