Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

fix(image): ensure images opened in a new tab can be activated #2303

Merged
merged 1 commit into from
Jun 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down