MozillaReality / horizon

(2015) Horizon was an experimental VR browser built on web standards using CSS-VR.
http://mozvr.github.io/horizon/web/
Other
1 stars 0 forks source link

url bar form is submitted when clicked/focused and cursor is positioned over top. #258

Open caseyyee opened 9 years ago

caseyyee commented 9 years ago

This looks to be the lines responsible for this: https://github.com/MozVR/horizon/blob/master/src/web/js/components/cursor.js#L304-L309

I noticed this happening when I clicked on the address input field and before I was done entering the URL, the form is submitted.

@cvan @KevinGrandon Any ideas as to why we do this?

caseyyee commented 9 years ago

as per slack: cvan: it was just something i added that allows you to click and hold the gamepad button to re-submit the URL. otherwise, you have to focus the field and then press the Enter key. you can remove.