| Index: ui/views/controls/native_control.cc
|
| diff --git a/ui/views/controls/native_control.cc b/ui/views/controls/native_control.cc
|
| index 687f193078b846fd25dab0fbcde8165f30275470..a9b5d4d23c56c03408db07623ca8a105482ac273 100644
|
| --- a/ui/views/controls/native_control.cc
|
| +++ b/ui/views/controls/native_control.cc
|
| @@ -269,10 +269,12 @@ void NativeControl::OnContextMenu(const POINT& location) {
|
| if (!context_menu_controller())
|
| return;
|
|
|
| - if (location.x == -1 && location.y == -1)
|
| - ShowContextMenu(GetKeyboardContextMenuLocation(), false);
|
| - else
|
| - ShowContextMenu(gfx::Point(location), true);
|
| + if (location.x == -1 && location.y == -1) {
|
| + ShowContextMenu(GetKeyboardContextMenuLocation(),
|
| + ui::CONTEXT_MENU_SOURCE_KEYBOARD);
|
| + } else {
|
| + ShowContextMenu(gfx::Point(location), ui::CONTEXT_MENU_SOURCE_MOUSE);
|
| + }
|
| }
|
|
|
| void NativeControl::OnFocus() {
|
|
|