| Index: ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| index 4b178fadeb2e78566f21f21c8b30065f53fa3e48..934eb6aded79109eb5c711a0ed4b4a6c5bab0542 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| @@ -219,8 +219,10 @@ CommandUtil.forceDefaultHandler = function(node, commandId) {
|
| event.cancelBubble = true;
|
| });
|
| node.addEventListener('canExecute', function(event) {
|
| - if (event.command.id === commandId)
|
| - event.canExecute = document.queryCommandEnabled(event.command.id);
|
| + if (event.command.id !== commandId)
|
| + return;
|
| + event.canExecute = document.queryCommandEnabled(event.command.id);
|
| + event.command.setHidden(false);
|
| });
|
| };
|
|
|
|
|