Differences From Artifact [6612ae670c]:
- File build/chrome/pin.js — part of check-in [16fd3e5408] at 2016-02-13 15:43:19 on branch trunk — ChromeOS: More work towards making the PIN entry more useful (user: rkeene, size: 700) [annotate] [blame] [check-ins using]
To Artifact [bd71cff546]:
- File build/chrome/pin.js — part of check-in [b8c2cad6d9] at 2016-02-26 19:50:01 on branch trunk — ChromeOS: Accept the "Enter" key to click OK at the PIN prompt (user: rkeene, size: 963) [annotate] [blame] [check-ins using]
| ︙ | |||
38 39 40 41 42 43 44 45 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | + + + + + + + + + + + + + + + + + + |
document.getElementById('pin').onblur = function() {
setTimeout(function() {
if (document.activeElement.className != "button") {
focusPin();
}
}, 1);
}
document.getElementById('pin').onkeypress = function(keyEvent) {
if (!keyEvent) {
return(true);
}
if (!keyEvent.keyIdentifier) {
return(true);
}
if (keyEvent.keyIdentifier != "Enter") {
return(true);
}
clickOk();
return(false);
};
}, 1);
|