mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
list: respect selectOnMouseDown
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user