mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
[HTML5] Add option to focus canvas on start.
Enabled by default.
This commit is contained in:
parent
c8444c3ee0
commit
c12fca57f4
3 changed files with 15 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue