Chromium Code Reviews| Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| index 0caa36c3a6cb67bf2f331aa47eda932c8ea98dca..d95654e1693ae89251190531641c853184629c04 100644 |
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| @@ -105,7 +105,11 @@ class AutocompleteTextfield : public views::Textfield { |
| } |
| virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE { |
| - bool result = views::Textfield::OnMouseDragged(event); |
| + bool result = true; |
| + // Do not handle anythin with right button drag. |
| + if (!event.IsOnlyRightMouseButton()) |
| + result = views::Textfield::OnMouseDragged(event); |
|
sky
2012/09/24 20:54:08
I think we should do this directly in TextField, a
|
| + |
| omnibox_view_->HandleMouseDragEvent(event); |
| return result; |
| } |