diff options
author | Lewis James <lewiji+github@gmail.com> | 2021-09-13 14:33:56 +0100 |
---|---|---|
committer | Lewis James <lewiji+github@gmail.com> | 2021-09-14 13:13:00 +0100 |
commit | 913aa270c09e62297b0a060ebdd49ac7df67aaae (patch) | |
tree | 1d593e37cf76c8340d67a0e3fd4eb6e6392aebbf /modules/mono/csharp_script.cpp | |
parent | f85426e8ad22e2ce875d3b686ab2dfdfa1ecc877 (diff) | |
download | redot-engine-913aa270c09e62297b0a060ebdd49ac7df67aaae.tar.gz |
Add editor keyboard shortcut for Mono Build solution button
Apply suggestions from code review
Merging @akien-mga's suggestion with the matching change to the CS project
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r-- | modules/mono/csharp_script.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 3437dbd194..0b4be23f36 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -43,8 +43,10 @@ #include "core/os/thread.h" #ifdef TOOLS_ENABLED +#include "core/os/keyboard.h" #include "editor/bindings_generator.h" #include "editor/editor_node.h" +#include "editor/editor_settings.h" #include "editor/node_dock.h" #endif @@ -1353,6 +1355,7 @@ void CSharpLanguage::_editor_init_callback() { // Enable it as a plugin EditorNode::add_editor_plugin(godotsharp_editor); + ED_SHORTCUT("mono/build_solution", TTR("Build Solution"), KEY_MASK_ALT | KEY_B); godotsharp_editor->enable_plugin(); get_singleton()->godotsharp_editor = godotsharp_editor; |