1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Link widget: Include original event in tm-navigate (#4724)

This commit is contained in:
saqimtiaz 2020-08-27 16:52:25 +02:00 committed by GitHub
parent 6645afcd15
commit 48c6146ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,8 @@ LinkWidget.prototype.handleClickEvent = function(event) {
metaKey: event.metaKey, metaKey: event.metaKey,
ctrlKey: event.ctrlKey, ctrlKey: event.ctrlKey,
altKey: event.altKey, altKey: event.altKey,
shiftKey: event.shiftKey shiftKey: event.shiftKey,
event: event
}); });
if(this.domNodes[0].hasAttribute("href")) { if(this.domNodes[0].hasAttribute("href")) {
event.preventDefault(); event.preventDefault();