| Index: ui/webui/resources/js/cr/ui/focus_row.js
|
| diff --git a/ui/webui/resources/js/cr/ui/focus_row.js b/ui/webui/resources/js/cr/ui/focus_row.js
|
| index a545d14d7be535be01233dbee25fdcbb88e37ce9..e612cbc1dbd51b8c4dbeabe8863f282615fb7d8c 100644
|
| --- a/ui/webui/resources/js/cr/ui/focus_row.js
|
| +++ b/ui/webui/resources/js/cr/ui/focus_row.js
|
| @@ -271,13 +271,13 @@ cr.define('cr.ui', function() {
|
|
|
| var index = -1;
|
|
|
| - if (e.keyIdentifier == 'Left')
|
| + if (e.key == 'ArrowLeft')
|
| index = elementIndex + (isRTL() ? 1 : -1);
|
| - else if (e.keyIdentifier == 'Right')
|
| + else if (e.key == 'ArrowRight')
|
| index = elementIndex + (isRTL() ? -1 : 1);
|
| - else if (e.keyIdentifier == 'Home')
|
| + else if (e.key == 'Home')
|
| index = 0;
|
| - else if (e.keyIdentifier == 'End')
|
| + else if (e.key == 'End')
|
| index = elements.length - 1;
|
|
|
| var elementToFocus = elements[index];
|
|
|