| 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 d165b69b30af1cea673932dcdd632613644ec5f5..15c52dc20e5d0a71b40be7474cd8a7cecdf47aa3 100644
|
| --- a/ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| +++ b/ui/webui/resources/js/cr/ui/context_menu_handler.js
|
| @@ -169,8 +169,10 @@ cr.define('cr.ui', function() {
|
| this.hideMenu();
|
| e.stopPropagation();
|
| e.preventDefault();
|
| -
|
| - // If the menu is visible we let it handle all the keyboard events.
|
| + } else if (e.keyCode == 46 /* Delete */) {
|
| + this.hideMenu();
|
| + // If the menu is visible we let it handle all the other keyboard
|
| + // events.
|
| } else if (this.menu) {
|
| this.menu.handleKeyDown(e);
|
| e.preventDefault();
|
|
|