Squelch context menus on the OSX App List when both buttons are pressed.
The apps grid uses [NSView menuForEvent:..] for its menus, so needs to check the button state explicitly to match the behaviour of [NSButton menu] (which isn't used, e.g., because the NSButton doesn't fill the grid cell). This CL adds a check to suppress the menu when the button is in the "lit" state, which occurs when the button is being held down. BUG=328835 TEST=Hold the left, then the right, mouse buttons over a app launcher item. A menu shouldn't appear. Releasing the left button (without moving the mouse cursor) will launch the item. Review URL: https://codereview.chromium.org/93793012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243391 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment