소스 검색

Prevent unwanted script editor input on game crash

Fixes #6530.
(cherry picked from commit 853d1ce9f30b93933e5e2f5dad78f7bf75742b15)
Henrique Lacreta Alves 9 년 전
부모
커밋
58daf901f9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tools/editor/plugins/script_editor_plugin.cpp

+ 1 - 0
tools/editor/plugins/script_editor_plugin.cpp

@@ -2310,6 +2310,7 @@ void ScriptEditor::apply_scripts() const {
 void ScriptEditor::_editor_play() {
 
 	debugger->start();
+	debug_menu->get_popup()->grab_focus();
 	debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), true );
 	debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_STEP), true );
 	debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), false );