@@ -227,6 +227,13 @@ void GameViewDebugger::_bind_methods() {
227227
228228GameViewDebugger::GameViewDebugger () {
229229 EditorFeatureProfileManager::get_singleton ()->connect (" current_feature_profile_changed" , callable_mp (this , &GameViewDebugger::_feature_profile_changed));
230+
231+ ED_SHORTCUT (" editor/suspend_resume_embedded_project" , TTRC (" Suspend/Resume Embedded Project" ), Key::F9);
232+ ED_SHORTCUT_OVERRIDE (" editor/suspend_resume_embedded_project" , " macos" , KeyModifierMask::META | KeyModifierMask::SHIFT | Key::B);
233+
234+ ED_SHORTCUT (" editor/next_frame_embedded_project" , TTRC (" Next Frame" ), Key::F10);
235+
236+ ED_SHORTCUT (" spatial_editor/tool_select" , TTRC (" Select Mode" ), Key::Q);
230237}
231238
232239// /////
@@ -984,16 +991,14 @@ GameView::GameView(Ref<GameViewDebugger> p_debugger, EmbeddedProcessBase *p_embe
984991 suspend_button->set_theme_type_variation (SceneStringName (FlatButton));
985992 suspend_button->connect (SceneStringName (toggled), callable_mp (this , &GameView::_suspend_button_toggled));
986993 suspend_button->set_accessibility_name (TTRC (" Suspend" ));
987- ED_SHORTCUT (" editor/suspend_resume_embedded_project" , TTRC (" Suspend/Resume Embedded Project" ), Key::F9);
988- ED_SHORTCUT_OVERRIDE (" editor/suspend_resume_embedded_project" , " macos" , KeyModifierMask::META | KeyModifierMask::SHIFT | Key::B);
989994 suspend_button->set_shortcut (ED_GET_SHORTCUT (" editor/suspend_resume_embedded_project" ));
990995
991996 next_frame_button = memnew (Button);
992997 main_menu_hbox->add_child (next_frame_button);
993998 next_frame_button->set_theme_type_variation (SceneStringName (FlatButton));
994999 next_frame_button->connect (SceneStringName (pressed), callable_mp (*debugger, &GameViewDebugger::next_frame));
9951000 next_frame_button->set_accessibility_name (TTRC (" Next Frame" ));
996- next_frame_button->set_shortcut (ED_SHORTCUT (" editor/next_frame_embedded_project" , TTRC ( " Next Frame " ), Key::F10 ));
1001+ next_frame_button->set_shortcut (ED_GET_SHORTCUT (" editor/next_frame_embedded_project" ));
9971002
9981003 main_menu_hbox->add_child (memnew (VSeparator));
9991004
@@ -1041,7 +1046,7 @@ GameView::GameView(Ref<GameViewDebugger> p_debugger, EmbeddedProcessBase *p_embe
10411046 select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->set_pressed (true );
10421047 select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->set_theme_type_variation (SceneStringName (FlatButton));
10431048 select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->connect (SceneStringName (pressed), callable_mp (this , &GameView::_select_mode_pressed).bind (RuntimeNodeSelect::SELECT_MODE_SINGLE));
1044- select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->set_shortcut (ED_SHORTCUT (" spatial_editor/tool_select" , TTRC ( " Select Mode " ), Key::Q ));
1049+ select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->set_shortcut (ED_GET_SHORTCUT (" spatial_editor/tool_select" ));
10451050 select_mode_button[RuntimeNodeSelect::SELECT_MODE_SINGLE]->set_shortcut_context (this );
10461051
10471052 select_mode_button[RuntimeNodeSelect::SELECT_MODE_LIST] = memnew (Button);
0 commit comments