You've already forked godot
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:
committed by
Rémi Verschelde
parent
2676d815ab
commit
69645b0e44
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user