DescriptionMD History: Fix forward slash key not working in search field
We previously added a shortcut of forward slash key to open and focus the search
field, but in this way when user inputs slash again it will be regarded as a
shortcut, not a normal input.
This CL fixes this by adding a check in onCanExecute(), if the search field is
already opened, then the shortcut command can not be executed so that the
forward slash key is regarded as normal input as search term.
BUG=626996
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/f503cf604552d4a7e1e184575609bf632f40dd22
Cr-Commit-Position: refs/heads/master@{#406425}
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 11
Patch Set 3 : address review comments #
Total comments: 4
Patch Set 4 : address review comments #
Total comments: 2
Patch Set 5 : I don't feel like to describe this patch, yeah~ #
Dependent Patchsets: Messages
Total messages: 28 (13 generated)
|