mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-05-04 16:34:10 +00:00
Modified handleClickEvent to send original event data with tm-navigate event. Fixes 2889 (#2900)
This commit is contained in:
parent
de81984973
commit
d89010752a
@ -135,7 +135,11 @@ 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 || (event.button === 1)
|
navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),
|
||||||
|
metaKey: event.metaKey,
|
||||||
|
ctrlKey: event.ctrlKey,
|
||||||
|
altKey: event.altKey,
|
||||||
|
shiftKey: event.shiftKey
|
||||||
});
|
});
|
||||||
if(this.domNodes[0].hasAttribute("href")) {
|
if(this.domNodes[0].hasAttribute("href")) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user