focus
/ mirror_to_github (push) Successful in 24s Details
/ test (push) Successful in 6s Details

This commit is contained in:
Leon van Kammen 2024-09-06 08:39:48 +00:00
parent 658e113853
commit 31b6f99050
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ if( typeof AFRAME != 'undefined '){
instance.setAttribute("dom", "")
const focus = () => document.querySelector('canvas.a-canvas').focus()
const focus = () => this.isoterminal.emulator.serial_adapter.term.focus()
instance.addEventListener('obbcollisionstarted', focus )
this.el.sceneEl.addEventListener('enter-vr', focus )
this.el.sceneEl.addEventListener('enter-ar', focus )