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

Unified Diff: Source/devtools/front_end/ui/DropDownMenu.js

Issue 1180013005: [DevTools] Show DropDownMenu for left mouse button only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/DropDownMenu.js
diff --git a/Source/devtools/front_end/ui/DropDownMenu.js b/Source/devtools/front_end/ui/DropDownMenu.js
index 1448c89e55d0309040e383779b8c97d033d60722..201d61c9b049a1882750b0ac71f6079e4dbac191 100644
--- a/Source/devtools/front_end/ui/DropDownMenu.js
+++ b/Source/devtools/front_end/ui/DropDownMenu.js
@@ -29,6 +29,8 @@ WebInspector.DropDownMenu.prototype = {
*/
_onMouseDown: function(event)
{
+ if (event.which !== 1)
+ return;
var menu = new WebInspector.ContextMenu(event);
for (var item of this._items)
menu.appendCheckboxItem(item.title, this._itemHandler.bind(this, item.id), item.id === this._selectedItemId);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698