4 ms·
You'd have to listen to both, right? Otherwise it'd be the same issue when the user tabs into the password input rather than out of.
by Legogris 9y ago
You'd have to listen to both, right? Otherwise it'd be the same issue when the user tabs into the password input rather than out of.
- thomastjeffery 9y agoNo. You could listen for the keydown, but you wouldn't hear it, so you may as well ignore what you can't hear.
- michaelmior 9y agoYou should get a key down event when moving into the password field since you're coming from a field which is not secure.
- dangero 9y agoYes you're right. I made a variable that tracked the current state of keyup keydown and could detect this special case.