| Index: chrome/browser/resources/shared/js/cr/ui/list.js
|
| diff --git a/chrome/browser/resources/shared/js/cr/ui/list.js b/chrome/browser/resources/shared/js/cr/ui/list.js
|
| index 042733b32b371bcd2f52376ee57794ba3734acba..edb3854c0b4606288e3c2b83fb9683af1e9f9d1a 100644
|
| --- a/chrome/browser/resources/shared/js/cr/ui/list.js
|
| +++ b/chrome/browser/resources/shared/js/cr/ui/list.js
|
| @@ -283,6 +283,9 @@ cr.define('cr.ui', function() {
|
| * @private
|
| */
|
| handleMouseDownUp_: function(e) {
|
| + if (this.disabled)
|
| + return;
|
| +
|
| var target = e.target;
|
|
|
| // If the target was this element we need to make sure that the user did
|
| @@ -311,6 +314,9 @@ cr.define('cr.ui', function() {
|
| * @return {boolean} Whether the key event was handled.
|
| */
|
| handleKeyDown: function(e) {
|
| + if (this.disabled)
|
| + return;
|
| +
|
| return this.selectionController_.handleKeyDown(e);
|
| },
|
|
|
| @@ -558,6 +564,8 @@ cr.define('cr.ui', function() {
|
| }
|
| };
|
|
|
| + cr.defineProperty(List, 'disabled', cr.PropertyKind.BOOL_ATTR);
|
| +
|
| return {
|
| List: List
|
| }
|
|
|