| Index: chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/list_selection_controller.js
|
| diff --git a/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/list_selection_controller.js b/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/list_selection_controller.js
|
| index 35101d1e715e5f83a4d76f1d5dd6a39582e45a85..74a8a2474cfd7c54e0b3912a1db7556f7528eb4c 100644
|
| --- a/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/list_selection_controller.js
|
| +++ b/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/list_selection_controller.js
|
| @@ -192,7 +192,7 @@ cr.define('cr.ui', function() {
|
| if (e.keyCode == SPACE_KEY_CODE)
|
| return;
|
| // Protect all but the most basic navigation commands in anything else.
|
| - } else if (e.keyIdentifier != 'Up' && e.keyIdentifier != 'Down') {
|
| + } else if (e.key != 'ArrowUp' && e.key != 'ArrowDown') {
|
| return;
|
| }
|
| }
|
| @@ -224,26 +224,26 @@ cr.define('cr.ui', function() {
|
| }
|
| }
|
|
|
| - switch (e.keyIdentifier) {
|
| + switch (e.key) {
|
| case 'Home':
|
| newIndex = this.getFirstIndex();
|
| break;
|
| case 'End':
|
| newIndex = this.getLastIndex();
|
| break;
|
| - case 'Up':
|
| + case 'ArrowUp':
|
| newIndex = leadIndex == -1 ?
|
| this.getLastIndex() : this.getIndexAbove(leadIndex);
|
| break;
|
| - case 'Down':
|
| + case 'ArrowDown':
|
| newIndex = leadIndex == -1 ?
|
| this.getFirstIndex() : this.getIndexBelow(leadIndex);
|
| break;
|
| - case 'Left':
|
| + case 'ArrrowLeft':
|
| newIndex = leadIndex == -1 ?
|
| this.getLastIndex() : this.getIndexBefore(leadIndex);
|
| break;
|
| - case 'Right':
|
| + case 'ArrowRight':
|
| newIndex = leadIndex == -1 ?
|
| this.getFirstIndex() : this.getIndexAfter(leadIndex);
|
| break;
|
|
|