Commit 6b0833d4 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Add Ctrl+V shortcut for gear-menu #paste-into-current-folder item

CL:841962 added the paste-into-current-folder gear-menu command, but no
keyboard shortcut was provided (M65).

Add a Ctrl+V shortcut to the #paste-into-current-folder <command> so it
is displayed in the gear-menu.

The #paste <command> has the same shortcut. So if a user clicks Ctrl+V,
would both commands execute? Manual testing showed that Ctrl+V executes
the #paste command only.

Automatic tests cover keyboard (copy) Ctrl+C then (paste) Ctrl+V case:

  KeyboardOperations/FilesApp*keyboardCopyDownloads
  KeyboardOperations/FilesApp*keyboardCopyDrive

Automatic tests cover gear-menu #paste-into-current-folder use:

  GearMenu/FilesApp*showPasteIntoCurrentFolder

Bug: 875109
Change-Id: Iec2a98ae0b31ccbe1d2518c6d4c4e8edd7e02a2d
Reviewed-on: https://chromium-review.googlesource.com/c/1331352Reviewed-by: default avatarTatsuhisa Yamaguchi <yamaguchi@chromium.org>
Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607930}
parent 763f1e25
......@@ -95,7 +95,8 @@
shortcut="c|Ctrl">
<command id="paste" i18n-values="label:PASTE_BUTTON_LABEL"
shortcut="v|Ctrl">
<command id="paste-into-current-folder" i18n-values="label:PASTE_BUTTON_LABEL">
<command id="paste-into-current-folder" i18n-values="label:PASTE_BUTTON_LABEL"
shortcut="v|Ctrl">
<command id="paste-into-folder"
i18n-values="label:PASTE_INTO_FOLDER_BUTTON_LABEL">
<command id="get-info" i18n-values="label:GET_INFO_BUTTON_LABEL"
......
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