Merge pull request #2303 from TriliumNext/sirius_patch

fix(image): ensure images opened in a new tab can be activated
pull/2297/head
Elian Doran 2025-06-13 15:31:27 +07:00 committed by GitHub
commit 26afab03ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

@ -17,6 +17,7 @@ export default class AbstractTextTypeWidget extends TypeWidget {
this.$widget.on("dblclick", "img", (e) => this.openImageInCurrentTab($(e.target)));
this.$widget.on("click", "img", (e) => {
e.stopPropagation();
const isLeftClick = e.which === 1;
const isMiddleClick = e.which === 2;
const ctrlKey = utils.isCtrlKey(e);