cnr-isti-vclab / 3DHOP

3D Heritage Online Presenter
http://www.3dhop.net
GNU General Public License v3.0
154 stars 42 forks source link

keyboard input disabled #26

Closed IroMp closed 4 years ago

IroMp commented 4 years ago

Hello, I have created an input field type=text in the page where 3DHOP viewer is embedded and it is deactivated when WebGL content is fully loaded. It seems that it prevents from writing any text in that field. Have you ever encounter this issue?

potenziani commented 4 years ago

Hi @IroMp, the issue was due to the bad management of the webpage focus in 3DHOP. Please download the latest DEVELOPMENT version of 3DHOP (in the GitHub DEVELOPMENT branch) to solve it.

PS: please notice that if (and only if) you want to add an input text field as overlay panel inside the main 3DHOP DIV element (the one with id="3dhop" class="tdhop"), you also need to remove (at your risk) the onmousedown="if (event.preventDefault) event.preventDefault()" command from its definition.

IroMp commented 4 years ago

I'll download it, thank you!