From 4f7297645d96d972a327c047040dbfe972f54a14 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Thu, 15 Nov 2018 17:49:41 +0100 Subject: [PATCH] Fix action-navigate widget for undefined event (#3542) we need to prevent the event from being undefined which happens when using `action-navigate` within a global keyboard shortcut --- core/modules/widgets/action-navigate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/widgets/action-navigate.js b/core/modules/widgets/action-navigate.js index b6688df08..adac959d5 100644 --- a/core/modules/widgets/action-navigate.js +++ b/core/modules/widgets/action-navigate.js @@ -55,6 +55,7 @@ NavigateWidget.prototype.refresh = function(changedTiddlers) { Invoke the action associated with this widget */ NavigateWidget.prototype.invokeAction = function(triggeringWidget,event) { + event = event || {}; var bounds = triggeringWidget && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(), suppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1); if(this.actionScroll === "yes") {