Check-in [b8c2cad6d9]
Overview
SHA1:b8c2cad6d9f4f95ec9e511353e2adb012b90fbbd
Date: 2016-02-26 19:50:01
User: rkeene
Comment:ChromeOS: Accept the "Enter" key to click OK at the PIN prompt
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-26
19:55
[d06273088d] ChromeOS: Clean up console logs in non-debug builds (user: rkeene, tags: trunk)
19:50
[b8c2cad6d9] ChromeOS: Accept the "Enter" key to click OK at the PIN prompt (user: rkeene, tags: trunk)
19:20
[d1316cdccd] ChromeOS: Dynamically compute the package version (user: rkeene, tags: trunk)
Changes

Modified build/chrome/pin.js from [6612ae670c] to [bd71cff546].

    38     38   	document.getElementById('pin').onblur = function() {
    39     39   		setTimeout(function() {
    40     40   			if (document.activeElement.className != "button") {
    41     41   				focusPin();
    42     42   			}
    43     43   		}, 1);
    44     44   	}
           45  +
           46  +	document.getElementById('pin').onkeypress = function(keyEvent) {
           47  +		if (!keyEvent) {
           48  +			return(true);
           49  +		}
           50  +
           51  +		if (!keyEvent.keyIdentifier) {
           52  +			return(true);
           53  +		}
           54  +
           55  +		if (keyEvent.keyIdentifier != "Enter") {
           56  +			return(true);
           57  +		}
           58  +
           59  +		clickOk();
           60  +
           61  +		return(false);
           62  +	};
    45     63   }, 1);