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

Unified Diff: chrome/browser/views/keyword_editor_view.cc

Issue 518028: views/gtk: Add missing keyboard accelerators to Search Engines dialog. (Closed)
Patch Set: added views side Created 10 years, 12 months 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 | « chrome/browser/gtk/keyword_editor_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/keyword_editor_view.cc
diff --git a/chrome/browser/views/keyword_editor_view.cc b/chrome/browser/views/keyword_editor_view.cc
index ed1b938d58ec61a6e3d64bfe3b3af6744687c112..1981dc0bf5c86d5567aff56d869c9a3754e4c6b0 100644
--- a/chrome/browser/views/keyword_editor_view.cc
+++ b/chrome/browser/views/keyword_editor_view.cc
@@ -155,6 +155,9 @@ void KeywordEditorView::Init() {
add_button_ = new views::NativeButton(
this, l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_NEW_BUTTON));
add_button_->SetEnabled(controller_->loaded());
+ add_button_->AddAccelerator(
+ views::Accelerator(base::VKEY_A, false, false, true));
+ add_button_->SetAccessibleKeyboardShortcut(L"A");
edit_button_ = new views::NativeButton(
this, l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_EDIT_BUTTON));
@@ -163,6 +166,9 @@ void KeywordEditorView::Init() {
remove_button_ = new views::NativeButton(
this, l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_REMOVE_BUTTON));
remove_button_->SetEnabled(false);
+ remove_button_->AddAccelerator(
+ views::Accelerator(base::VKEY_R, false, false, true));
+ remove_button_->SetAccessibleKeyboardShortcut(L"R");
make_default_button_ = new views::NativeButton(
this,
« no previous file with comments | « chrome/browser/gtk/keyword_editor_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698