Allow to change the Stop shortcut used at runtime
This commit is contained in:
parent
051f24b067
commit
409613ba7b
3 changed files with 34 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue