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

Unified Diff: webkit/port/platform/chromium/PopupMenuChromium.cpp

Issue 15040: Any mouse click selects a drop down list item, when it shouldn't... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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: webkit/port/platform/chromium/PopupMenuChromium.cpp
===================================================================
--- webkit/port/platform/chromium/PopupMenuChromium.cpp (revision 7195)
+++ webkit/port/platform/chromium/PopupMenuChromium.cpp (working copy)
@@ -511,6 +511,10 @@
return true;
}
+ // Only process the left button click.
+ if (event.button() != LeftButton)
Matt Perry 2008/12/18 22:34:35 Since this is before the "abandon" step, does righ
Evan Stade 2008/12/19 00:19:56 If it's moved to after the abandon() step, it will
+ return true;
+
if (!isPointInBounds(event.pos()))
abandon();
@@ -552,6 +556,10 @@
return true;
}
+ // Only process the left button click.
+ if (event.button() != LeftButton)
+ return true;
+
if (!isPointInBounds(event.pos()))
return true;
« 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