1
0
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:
Jermolene 2014-03-03 09:09:13 +00:00
parent 0200bc1b4e
commit df6436a12c

View File

@ -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();