Commit 218274c7 authored by Romain Loth's avatar Romain Loth

easier login with ENTER

parent f4f803a1
......@@ -277,6 +277,12 @@ var cmxClt = (function(cC) {
var body = document.querySelector('body')
body.insertBefore(myDiv, body.lastChild)
// add an enter action like classic submit but ignored when email is focused (because email often has browser's own completion)
myDiv.onkeydown = function(evt) {
if (evt.keyCode == 13 && evt.target.id != 'menu_email')
cmxClt.elts.box.postAuthBox('auth_box')
}
// save a ref to it
cC.elts.box.authBox = document.getElementById('auth_modal')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment