DescriptionFiles.app: Reset hidden state of default commands when input elements are focused.
paste command's hidden property is set true when one directory is focused.
However, it will not be reset when an input is focused just after on directory is focused,
because different handler (forceDefaultHandler) handles canExecute event when inputs are focused.
All cut/copy/paste/delete commands should be shown in input element,
so this CL reset the hidden property of them.
BUG=528843
TEST=manually tested on rename input, search input, and filename input on save-as dialog.
Committed: https://crrev.com/b181a7749b8ec5eaa7aad6e42db9bdf0fc450bda
Cr-Commit-Position: refs/heads/master@{#347870}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use early return. #Messages
Total messages: 9 (3 generated)
|