| Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
| index 898af4e6dc71dd2cff3a38902063a5adf1cd3d50..858109c69a751186e38d3b39acfc4a3d84567611 100644
|
| --- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
|
| @@ -122,10 +122,16 @@ gfx::Size IconLabelBubbleView::GetPreferredSize() const {
|
| return GetSizeForLabelWidth(label_->GetPreferredSize().width());
|
| }
|
|
|
| +bool IconLabelBubbleView::OnKeyPressed(const ui::KeyEvent& event) {
|
| + if (event.key_code() == ui::VKEY_RETURN)
|
| + return OnActivate();
|
| + return false;
|
| +}
|
| +
|
| bool IconLabelBubbleView::OnKeyReleased(const ui::KeyEvent& event) {
|
| - if (event.key_code() != ui::VKEY_RETURN && event.key_code() != ui::VKEY_SPACE)
|
| - return false;
|
| - return OnActivate();
|
| + if (event.key_code() == ui::VKEY_SPACE)
|
| + return OnActivate();
|
| + return false;
|
| }
|
|
|
| void IconLabelBubbleView::Layout() {
|
|
|