summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-11 19:56:39 +0200
committerGitHub <noreply@github.com>2016-07-11 19:56:39 +0200
commitfbc5f1ecfb60e0a08614d0fb2d78db6b61532145 (patch)
tree71e018c08145a6f857ff4817a37fde52ed778de0 /tools
parentb41be2d1a9210d03be0817871ead7aa0f8657716 (diff)
parentaed2f5f938c41af5c65b543cf4d9816780da3c40 (diff)
Merge pull request #5650 from TheHX/issue-5643
Fix "Play custom scene" keyboard shortcut
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/editor_node.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 80fadd18bd..81f9927b92 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -5856,7 +5856,8 @@ EditorNode::EditorNode() {
play_custom_scene_button->set_focus_mode(Control::FOCUS_NONE);
play_custom_scene_button->set_icon(gui_base->get_icon("PlayCustom","EditorIcons"));
play_custom_scene_button->connect("pressed", this,"_menu_option",make_binds(RUN_PLAY_CUSTOM_SCENE));
- play_custom_scene_button->set_tooltip(TTR("Play custom scene")+" ("+keycode_get_string(KEY_MASK_CMD|KEY_MASK_SHIFT|KEY_F5)+").");
+ play_custom_scene_button->set_tooltip(TTR("Play custom scene"));
+ play_custom_scene_button->set_shortcut(ED_SHORTCUT("editor/play_custom_scene",TTR("Play Custom Scene"),KEY_MASK_CMD|KEY_MASK_SHIFT|KEY_F5));
debug_button = memnew( MenuButton );
debug_button->set_flat(true);