mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(image): ensure images opened in a new tab can be activated
This commit is contained in:
parent
f0c696d6fd
commit
07bb0644b2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user