Allow to change the Stop shortcut used at runtime

(cherry picked from commit 409613ba7b)
This commit is contained in:
kobewi
2022-08-30 13:32:34 +02:00
committed by Rémi Verschelde
parent 9ca40f0e0a
commit 737bfa57d3
3 changed files with 39 additions and 2 deletions

View File

@@ -235,6 +235,11 @@ Error EditorRun::run(const String &p_scene, const String &p_custom_args, const L
}
}
// 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: %ls", exec.c_str());
for (List<String>::Element *E = args.front(); E; E = E->next()) {
printf(" %ls", E->get().c_str());