focus
This commit is contained in:
parent
658e113853
commit
31b6f99050
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue