| Index: ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| diff --git a/ui/webui/resources/js/cr/ui/context_menu_handler.js b/ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| index 0c9bb7ad9d17040d4ce42d0f288364f6ff1454a7..7a48736e36a60635f7d64ea8e5bb516aa19321b1 100644
|
| --- a/ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| +++ b/ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| @@ -137,8 +137,7 @@ cr.define('cr.ui', function() {
|
| case 'keydown':
|
| this.keyIsDown_ = !e.ctrlKey && !e.altKey &&
|
| // context menu key or Shift-F10
|
| - (e.keyCode == 93 && !e.shiftKey ||
|
| - e.keyIdentifier == 'F10' && e.shiftKey);
|
| + (e.keyCode == 93 && !e.shiftKey || e.key == 'F10' && e.shiftKey);
|
| break;
|
|
|
| case 'keyup':
|
| @@ -169,8 +168,7 @@ cr.define('cr.ui', function() {
|
| break;
|
|
|
| case 'keydown':
|
| - // keyIdentifier does not report 'Esc' correctly
|
| - if (e.keyCode == 27 /* Esc */) {
|
| + if (e.key == 'Escape') {
|
| this.hideMenu();
|
| e.stopPropagation();
|
| e.preventDefault();
|
|
|