hivewallet / hive-js

Hive digital currency wallet
http://www.hivewallet.com
GNU General Public License v2.0
81 stars 57 forks source link

Autofocus pin/passphrase input fields #190

Closed weilu closed 10 years ago

weilu commented 10 years ago

This has been requested many times. I understand that there's some UI implications with autofocus. I'd like to record the precise issue here and see if we can solve it.

haustraliaer commented 10 years ago

Two issues here:

  1. Autofocus initially caused a bunch of ios bugs where the keyboard would end up pushing the content up too high (or not high enough) and then the submit button and/or input field would be hidden from view.
  2. The new 'pretty' pin entry will not work with the html5 autofocus attribute at all because it's a fake field essentially (the hidden field will focus, but no indication is given to the user that it is so - and on touch devices it won't bring up the keyboard).

With point 2 I did try focusing the field programatically (use js rather than html5) but that does not work at all on ios because it requires a "touch event" to be registered in order to .focus() a form field.