未验证 提交 a773d485 编写于 作者: B Benjamin Pasero 提交者: GitHub

Firefox: avoid menu actions firing twice (#109374)

* 💄

* fix #108621
上级 3ef712e1
......@@ -448,9 +448,11 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
// In all other cases, set timout to allow context menu cancellation to trigger
// otherwise the action will destroy the menu and a second context menu
// will still trigger for right click.
setTimeout(() => {
this.onClick(e);
}, 0);
else {
setTimeout(() => {
this.onClick(e);
}, 0);
}
}));
this._register(addDisposableListener(this.element, EventType.CONTEXT_MENU, e => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册