| Index: chrome/browser/resources/ntp4/nav_dot.js
|
| diff --git a/chrome/browser/resources/ntp4/nav_dot.js b/chrome/browser/resources/ntp4/nav_dot.js
|
| index 964be968689b13a4e4dc86f230571b0868123c86..7703f31639d2ce5d8a87286fd7b92d5f2e87178b 100644
|
| --- a/chrome/browser/resources/ntp4/nav_dot.js
|
| +++ b/chrome/browser/resources/ntp4/nav_dot.js
|
| @@ -114,7 +114,7 @@ cr.define('ntp', function() {
|
| * @param {Event} e The KeyboardEvent.
|
| */
|
| onKeyDown_: function(e) {
|
| - if (e.keyIdentifier == 'Enter') {
|
| + if (e.key == 'Enter') {
|
| this.onClick_(e);
|
| e.stopPropagation();
|
| }
|
| @@ -164,8 +164,8 @@ cr.define('ntp', function() {
|
| * @private
|
| */
|
| onInputKeyDown_: function(e) {
|
| - switch (e.keyIdentifier) {
|
| - case 'U+001B': // Escape cancels edits.
|
| + switch (e.key) {
|
| + case 'Escape': // Escape cancels edits.
|
| this.input_.value = this.displayTitle;
|
| case 'Enter': // Fall through.
|
| this.input_.blur();
|
|
|