diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 02:03:11 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 02:03:11 +0000 |
commit | f3bdd8872778e4482891e364e6bacbf8a71a0ce4 (patch) | |
tree | 203816a9a4f2470d2f1c0a3d02a090328b4fd048 /views | |
parent | ad0b0196df37b8924eb6a1a42c31e97765f5bba1 (diff) | |
download | chromium_src-f3bdd8872778e4482891e364e6bacbf8a71a0ce4.zip chromium_src-f3bdd8872778e4482891e364e6bacbf8a71a0ce4.tar.gz chromium_src-f3bdd8872778e4482891e364e6bacbf8a71a0ce4.tar.bz2 |
Add the keys used by the back/forward menu items to the accelerator map so that we can locate sensible shortcut text for them rather than asking Windows.
http://crbug.com/14070
TEST=see bug
Review URL: http://codereview.chromium.org/149302
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/accelerator.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/accelerator.cc b/views/accelerator.cc index af969ac..4ac0419 100644 --- a/views/accelerator.cc +++ b/views/accelerator.cc @@ -43,6 +43,15 @@ std::wstring Accelerator::GetShortcutText() const { case VK_DELETE: string_id = IDS_APP_DELETE_KEY; break; + case VK_LEFT: + string_id = IDS_APP_LEFT_ARROW_KEY; + break; + case VK_RIGHT: + string_id = IDS_APP_RIGHT_ARROW_KEY; + break; + case VK_BACK: + string_id = IDS_APP_BACKSPACE_KEY; + break; case VK_F1: string_id = IDS_APP_F1_KEY; break; |