mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Allow middle mouse button to trigger navigation suppression when clicking a tiddler link
Equivalent to holding control/command while clicking.
This commit is contained in:
parent
0200bc1b4e
commit
df6436a12c
@ -95,7 +95,7 @@ LinkWidget.prototype.handleClickEvent = function (event) {
|
|||||||
navigateFromNode: this,
|
navigateFromNode: this,
|
||||||
navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
|
navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
|
||||||
},
|
},
|
||||||
navigateSuppressNavigation: event.metaKey || event.ctrlKey
|
navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1)
|
||||||
});
|
});
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user