[HTML5] Add option to focus canvas on start.

Enabled by default.
This commit is contained in:
Fabio Alessandrelli 2021-06-25 19:07:17 +02:00
parent c8444c3ee0
commit c12fca57f4
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) {