1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

[HTML5] Add option to focus canvas on start.

Enabled by default.

(cherry picked from commit c12fca57f4)
This commit is contained in:
Fabio Alessandrelli
2021-06-25 19:07:17 +02:00
committed by Rémi Verschelde
parent 2676d815ab
commit 69645b0e44
3 changed files with 15 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ const GodotConfig = {
GodotConfig.persistent_drops = !!p_opts['persistentDrops'];
GodotConfig.on_execute = p_opts['onExecute'];
GodotConfig.on_exit = p_opts['onExit'];
if (p_opts['focusCanvas']) {
GodotConfig.canvas.focus();
}
},
locate_file: function (file) {