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
39
40
41
42
43
44


















45
	document.getElementById('pin').onblur = function() {
		setTimeout(function() {
			if (document.activeElement.className != "button") {
				focusPin();
			}
		}, 1);
	}


















}, 1);







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

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);