Correctly add EventListener 'click' for popup-handling in new windows (#5127)

This commit is contained in:
Simon Huber 2020-11-28 08:26:47 +01:00 committed by GitHub
parent 86a9f922bf
commit 8005c91e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -84,11 +84,8 @@ exports.startup = function() {
name: "keydown",
handlerObject: $tw.keyboardManager,
handlerMethod: "handleKeydownEvent"
},{
name: "click",
handlerObject: $tw.popup,
handlerMethod: "handleEvent"
}]);
srcWindow.document.documentElement.addEventListener("click",$tw.popup,true);
srcWindow.haveInitialisedWindow = true;
});
// Close open windows when unloading main window