diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-28 09:04:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 09:04:25 +0100 |
commit | a09846e01542f199bbc7eb8b85003736a57f3e16 (patch) | |
tree | dcb2a7c189a7f65095cb1fef9f59eee45b072360 /editor/plugins/script_text_editor.cpp | |
parent | a6751e6c58e73d6b8d04e98bba5fb6e380fdf34f (diff) | |
parent | 7941235e06c8acf1cb2888de3db8905c60c8ff00 (diff) |
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index fbd3612c72..e854ed4fb3 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1849,6 +1849,7 @@ ScriptTextEditor::ScriptTextEditor() { edit_menu = memnew(MenuButton); edit_menu->set_text(TTR("Edit")); edit_menu->set_switch_on_hover(true); + edit_menu->set_shortcut_context(this); convert_case = memnew(PopupMenu); convert_case->set_name("convert_case"); @@ -1868,10 +1869,12 @@ ScriptTextEditor::ScriptTextEditor() { search_menu = memnew(MenuButton); search_menu->set_text(TTR("Search")); search_menu->set_switch_on_hover(true); + search_menu->set_shortcut_context(this); goto_menu = memnew(MenuButton); goto_menu->set_text(TTR("Go To")); goto_menu->set_switch_on_hover(true); + goto_menu->set_shortcut_context(this); bookmarks_menu = memnew(PopupMenu); bookmarks_menu->set_name("Bookmarks"); |