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

Unified Diff: chrome/browser/ui/views/location_bar/bubble_icon_view.cc

Issue 1915063003: Change ContentSettingImageView activation to key release (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
Index: chrome/browser/ui/views/location_bar/bubble_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
index 8278ca941c1bf533357e9226fdf340ab2ac1d0bd..6b62f1134d08f37d2d30934cb25b28406d333254 100644
--- a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
@@ -98,7 +98,7 @@ void BubbleIconView::OnMouseReleased(const ui::MouseEvent& event) {
ExecuteCommand(EXECUTE_SOURCE_MOUSE);
}
-bool BubbleIconView::OnKeyPressed(const ui::KeyEvent& event) {
+bool BubbleIconView::OnKeyReleased(const ui::KeyEvent& event) {
if (event.key_code() != ui::VKEY_SPACE && event.key_code() != ui::VKEY_RETURN)
return false;

Powered by Google App Engine
This is Rietveld 408576698