1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Modified handleClickEvent to send original event data with tm-navigate event. Fixes 2889 (#2900)

This commit is contained in:
saqimtiaz 2017-06-14 19:16:13 +02:00 committed by Jeremy Ruston
parent de81984973
commit d89010752a

View File

@ -135,7 +135,11 @@ LinkWidget.prototype.handleClickEvent = function(event) {
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.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")) {
event.preventDefault();