mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-09 03:53:00 +00:00
Enhance links so that control/command clicking suppresses navigation
Control- or Command-clicking on a link will now open the target tiddler but suppress navigating to it. Kind of like opening in a background tab.
This commit is contained in:
@@ -94,7 +94,8 @@ LinkWidget.prototype.handleClickEvent = function (event) {
|
||||
navigateFromTitle: this.getVariable("storyTiddler"),
|
||||
navigateFromNode: this,
|
||||
navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
|
||||
}
|
||||
},
|
||||
navigateSuppressNavigation: event.metaKey || event.ctrlKey
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user