Commit 6e211671 authored by deepak.m1's avatar deepak.m1 Committed by Commit bot

This is follow up for issue 462861. As we have separate handle for...

This is follow up for issue 462861. As we have separate handle for 'undo-command' for search box, so canExecute should be set to true unconditionally.

BUG=477597

Review URL: https://codereview.chromium.org/1094513003

Cr-Commit-Position: refs/heads/master@{#325422}
parent 7d82b15a
......@@ -503,7 +503,7 @@ function handleCanExecuteForDocument(e) {
case 'undo-command':
// Because the global undo command has no visible UI, always enable it,
// and just make it a no-op if undo is not possible.
e.canExecute = e.currentTarget.activeElement !== $('term');
e.canExecute = true;
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment