未验证 提交 2ec1f83f 编写于 作者: J Jean Pierre 提交者: GitHub

Fixes #109322 (#109349)

上级 c572cd80
......@@ -306,6 +306,12 @@ export class NotificationTemplateRenderer extends Disposable {
// Container
this.template.container.classList.toggle('expanded', notification.expanded);
this.inputDisposables.add(addDisposableListener(this.template.container, EventType.MOUSE_UP, e => {
if (e.button === 1 /* Middle Button */) {
// Prevent firing the 'paste' event in the editor textarea - #109322
EventHelper.stop(e, true);
}
}));
this.inputDisposables.add(addDisposableListener(this.template.container, EventType.AUXCLICK, e => {
if (!notification.hasProgress && e.button === 1 /* Middle Button */) {
EventHelper.stop(e, true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册