[Koha-bugs] [Bug 25349] Enter in the username field submits the login, instead of moving focus to the password field

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 1 22:59:50 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25349

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lucas at bywatersolutions.com

--- Comment #1 from Lucas Gass <lucas at bywatersolutions.com> ---
I think submitting a form by pressing Enter is a default behavior for form
submission and I will be interested to hear what others say about this. In the
meantime this javascript in the SCOUserJS system preference can alleviate the
problem: (at least for US keyboards)

document.getElementById("patronlogin").onkeypress = function(e) {
  var key = e.charCode || e.keyCode || 0;     
  if (key == 13) {
     document.getElementById("patronpw").focus();
     return false;
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list