提交 99929b58 编写于 作者: C Christof Marti

Prevent default on mouse down (fixes #64350)

上级 6dcd4366
...@@ -279,6 +279,12 @@ export class QuickInputList { ...@@ -279,6 +279,12 @@ export class QuickInputList {
break; break;
} }
})); }));
this.disposables.push(this.list.onMouseDown(e => {
if (e.browserEvent.button !== 2) {
// Works around / fixes #64350.
e.browserEvent.preventDefault();
}
}));
this.disposables.push(dom.addDisposableListener(this.container, dom.EventType.CLICK, e => { this.disposables.push(dom.addDisposableListener(this.container, dom.EventType.CLICK, e => {
if (e.x || e.y) { // Avoid 'click' triggered by 'space' on checkbox. if (e.x || e.y) { // Avoid 'click' triggered by 'space' on checkbox.
this._onLeave.fire(); this._onLeave.fire();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册