提交 bb2da0c7 编写于 作者: J Joao Moreno

Revert "list: right click should not select/focus"

fixes #64735

This reverts commit 7d76da21.
上级 61587049
...@@ -518,10 +518,6 @@ class MouseController<T> implements IDisposable { ...@@ -518,10 +518,6 @@ class MouseController<T> implements IDisposable {
} }
private onMouseDown(e: IListMouseEvent<T> | IListTouchEvent<T>): void { private onMouseDown(e: IListMouseEvent<T> | IListTouchEvent<T>): void {
if (e.browserEvent instanceof MouseEvent && e.browserEvent.button === 2) {
return;
}
if (this.options.focusOnMouseDown === false) { if (this.options.focusOnMouseDown === false) {
e.browserEvent.preventDefault(); e.browserEvent.preventDefault();
e.browserEvent.stopPropagation(); e.browserEvent.stopPropagation();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册