| Index: ui/webui/resources/js/cr/ui/list.js
|
| diff --git a/ui/webui/resources/js/cr/ui/list.js b/ui/webui/resources/js/cr/ui/list.js
|
| index 4fc97ba510614ef5b39a9b931a7a5a0a7b74ed16..72cf7c52e3b9cf6c2f2ce9d65b69ecf838716c09 100644
|
| --- a/ui/webui/resources/js/cr/ui/list.js
|
| +++ b/ui/webui/resources/js/cr/ui/list.js
|
| @@ -467,8 +467,16 @@ cr.define('cr.ui', function() {
|
| var target = /** @type {HTMLElement} */(e.target);
|
|
|
| var ancestor = this.getListItemAncestor(target);
|
| - if (ancestor)
|
| - this.activateItemAtIndex(this.getIndexOfListItem(ancestor));
|
| + var index = -1;
|
| + if (ancestor) {
|
| + index = this.getIndexOfListItem(ancestor);
|
| + this.activateItemAtIndex(index);
|
| + }
|
| +
|
| + var sm = this.selectionModel;
|
| + var indexSelected = sm.getIndexSelected(index);
|
| + if (!indexSelected)
|
| + this.handlePointerDownUp_(e);
|
| },
|
|
|
| /**
|
|
|