summaryrefslogtreecommitdiff
path: root/editor/editor_run.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-30 19:29:04 +0200
committerGitHub <noreply@github.com>2022-08-30 19:29:04 +0200
commit6e6287f748782f829289fbde323264960e420157 (patch)
treea9e813c2f87c378d4c222cfdac387272039bdd1a /editor/editor_run.cpp
parent29325935198f981e1f59a774cfa5eff6564140b7 (diff)
parent409613ba7ba50e6cc985c61f6dcc482bac68746e (diff)
Merge pull request #47744 from KoBeWi/press_F_to_play_exit
Diffstat (limited to 'editor/editor_run.cpp')
-rw-r--r--editor/editor_run.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp
index 3b828951e4..b909129b18 100644
--- a/editor/editor_run.cpp
+++ b/editor/editor_run.cpp
@@ -258,6 +258,11 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie) {
}
}
+ // Pass the debugger stop shortcut to the running instance(s).
+ String shortcut;
+ VariantWriter::write_to_string(ED_GET_SHORTCUT("editor/stop"), shortcut);
+ OS::get_singleton()->set_environment("__GODOT_EDITOR_STOP_SHORTCUT__", shortcut);
+
printf("Running: %s", exec.utf8().get_data());
for (const String &E : args) {
printf(" %s", E.utf8().get_data());