Chromium Code Reviews| Index: ui/webui/resources/js/cr/ui/menu_button.js |
| diff --git a/ui/webui/resources/js/cr/ui/menu_button.js b/ui/webui/resources/js/cr/ui/menu_button.js |
| index e240a3221511e4e1889b3ff2abf1225ca3ef9fae..f99c33034afdc2c32be2e79cd6d99496402c3b41 100644 |
| --- a/ui/webui/resources/js/cr/ui/menu_button.js |
| +++ b/ui/webui/resources/js/cr/ui/menu_button.js |
| @@ -44,6 +44,7 @@ cr.define('cr.ui', function() { |
| decorate: function() { |
| this.addEventListener('mousedown', this); |
| this.addEventListener('keydown', this); |
| + this.addEventListener('dblclick', this); |
| // Adding the 'custom-appearance' class prevents widgets.css from changing |
| // the appearance of this element. |
| @@ -154,6 +155,10 @@ cr.define('cr.ui', function() { |
| case 'resize': |
| this.hideMenu(); |
| break; |
| + case 'dblclick': |
|
Bernhard Bauer
2015/04/21 15:54:47
Can you add a comment like "Don't allow double cli
Deepak
2015/04/22 04:14:25
Done.
|
| + e.preventDefault(); |
| + e.stopPropagation(); |
| + break; |
| } |
| }, |