When you enable worker mode your scripts run in a web worker, which don't have direct access to window
and associated events. (Keyboard input can still be detected via runtime events, but you can't prevent default on them, because the event already finished on the main thread.) If you try to use window
in a worker, it will throw errors which should appear in the browser console.
Worker mode "auto" will default to using a worker, unless you add scripts to your project, in which case it turns off worker mode. This is because people tend to write scripts that access things like window
and document
, so the default is to allow that to work. This is noted in the manual here.