mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Linkcatcher should pass through event objects (#7401)
This commit is contained in:
parent
4e96a012f6
commit
9cdb38d800
@ -92,12 +92,9 @@ LinkCatcherWidget.prototype.handleNavigateEvent = function(event) {
|
|||||||
this.executingActions = false;
|
this.executingActions = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent
|
// This is a navigate event generated by the actions of this linkcatcher,
|
||||||
this.parentWidget.dispatchEvent({
|
// so we don't trap it again, but just pass it to the parent
|
||||||
type: "tm-navigate",
|
this.parentWidget.dispatchEvent(event);
|
||||||
param: event.navigateTo,
|
|
||||||
navigateTo: event.navigateTo
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user