DescriptionCheck if a command can be executed before executing it via a shortcut.
Commands are updated when focus is updated. This makes sense, when executing commands by pressing an ui element. However, when executing a command via a shortcut, we may execute it while it shouldn't be allowed to be executed. This patch fixes it by updating the command's state (disabled/enabled) just before executing it via a shortcut.
TEST=Enter Files.app, select a file, then deselect a file, hit Delete button. A delete command should not be invoked.
BUG=174554
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192514
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|