list: respect selectOnMouseDown

This commit is contained in:
Joao Moreno
2017-08-31 17:54:43 +02:00
parent 59aa58b990
commit 18bea9c44e

View File

@@ -385,9 +385,11 @@ class MouseController<T> implements IDisposable {
return;
}
const focus = this.list.getFocus();
this.list.setSelection(focus);
this.list.open(focus);
if (!this.options.selectOnMouseDown) {
const focus = this.list.getFocus();
this.list.setSelection(focus);
this.list.open(focus);
}
}
private onDoubleClick(e: IListMouseEvent<T>): void {