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

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

Issue 718583002: Accelerator Key's are not visible for Print and Inspect Element in pdf context menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 8cf89e55a89cba5a9934571f4c189fb0fba760ec..7a1d4012971bdb558f5169ab26ae71a22fdc3e64 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
@@ -77,6 +77,11 @@ bool RenderViewContextMenuViews::GetAcceleratorForCommandId(
*accel = ui::Accelerator(ui::VKEY_C, ui::EF_CONTROL_DOWN);
return true;
+ case IDC_CONTENT_CONTEXT_INSPECTELEMENT:
+ *accel =
+ ui::Accelerator(ui::VKEY_I, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
msw 2014/11/11 07:27:09 nit: follow the surrounding line breaking conventi
Deepak 2014/11/11 07:35:47 Done.
+ return true;
+
case IDC_CONTENT_CONTEXT_PASTE:
*accel = ui::Accelerator(ui::VKEY_V, ui::EF_CONTROL_DOWN);
return true;
@@ -98,6 +103,10 @@ bool RenderViewContextMenuViews::GetAcceleratorForCommandId(
*accel = ui::Accelerator(ui::VKEY_OEM_6, ui::EF_CONTROL_DOWN);
return true;
+ case IDC_PRINT:
+ *accel = ui::Accelerator(ui::VKEY_P, ui::EF_CONTROL_DOWN);
+ return true;
+
default:
return false;
}
« 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