mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix context menu in browser for launchers, closes #3454
This commit is contained in:
parent
3b5f2b86d5
commit
a083917db1
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.57.5",
|
"version": "0.58.0-beta",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.57.5",
|
"version": "0.58.0-beta",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -29,6 +29,8 @@ export default class AbstractButtonWidget extends NoteContextAwareWidget {
|
|||||||
this.$widget.tooltip("hide");
|
this.$widget.tooltip("hide");
|
||||||
|
|
||||||
this.settings.onContextMenu(e);
|
this.settings.onContextMenu(e);
|
||||||
|
|
||||||
|
return false; // blocks default browser right click menu
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ export default class SpacerWidget extends BasicWidget {
|
|||||||
appContext.triggerCommand(command);
|
appContext.triggerCommand(command);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return false; // blocks default browser right click menu
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ export default class RelationMapTypeWidget extends TypeWidget {
|
|||||||
selectMenuItemHandler: ({command}) => this.contextMenuHandler(command, e.target)
|
selectMenuItemHandler: ({command}) => this.contextMenuHandler(command, e.target)
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false; // blocks default browser right click menu
|
||||||
});
|
});
|
||||||
|
|
||||||
this.clipboard = null;
|
this.clipboard = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user