Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Unified Diff: chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc

Issue 727533004: Keyboard shortcut for 'Back','Forward' and 'Save page' are not present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
diff --git a/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc b/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
index a79bb6ad136ce5f3bd5ab9417b03030dbe6672ea..f27a5dd52b784fed2e23a63ee956f3c915951454 100644
--- a/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
+++ b/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
@@ -59,6 +59,10 @@ bool RenderViewContextMenuViews::GetAcceleratorForCommandId(
// There are no formally defined accelerators we can query so we assume
// that Ctrl+C, Ctrl+V, Ctrl+X, Ctrl-A, etc do what they normally do.
switch (command_id) {
+ case IDC_BACK:
+ *accel = ui::Accelerator(ui::VKEY_LEFT, ui::EF_ALT_DOWN);
+ return true;
+
case IDC_CONTENT_CONTEXT_UNDO:
*accel = ui::Accelerator(ui::VKEY_Z, ui::EF_CONTROL_DOWN);
return true;
@@ -103,6 +107,10 @@ bool RenderViewContextMenuViews::GetAcceleratorForCommandId(
*accel = ui::Accelerator(ui::VKEY_OEM_6, ui::EF_CONTROL_DOWN);
return true;
+ case IDC_FORWARD:
+ *accel = ui::Accelerator(ui::VKEY_RIGHT, ui::EF_ALT_DOWN);
+ return true;
+
case IDC_PRINT:
*accel = ui::Accelerator(ui::VKEY_P, ui::EF_CONTROL_DOWN);
return true;
@@ -111,6 +119,10 @@ bool RenderViewContextMenuViews::GetAcceleratorForCommandId(
*accel = ui::Accelerator(ui::VKEY_R, ui::EF_CONTROL_DOWN);
return true;
+ case IDC_SAVE_PAGE:
+ *accel = ui::Accelerator(ui::VKEY_S, ui::EF_CONTROL_DOWN);
+ return true;
+
case IDC_VIEW_SOURCE:
*accel = ui::Accelerator(ui::VKEY_U, ui::EF_CONTROL_DOWN);
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698