kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Correctly add EventListener 'click' for popup-handling in new windows (#5127)
rodzic
86a9f922bf
commit
8005c91e79
|
@ -84,11 +84,8 @@ exports.startup = function() {
|
||||||
name: "keydown",
|
name: "keydown",
|
||||||
handlerObject: $tw.keyboardManager,
|
handlerObject: $tw.keyboardManager,
|
||||||
handlerMethod: "handleKeydownEvent"
|
handlerMethod: "handleKeydownEvent"
|
||||||
},{
|
|
||||||
name: "click",
|
|
||||||
handlerObject: $tw.popup,
|
|
||||||
handlerMethod: "handleEvent"
|
|
||||||
}]);
|
}]);
|
||||||
|
srcWindow.document.documentElement.addEventListener("click",$tw.popup,true);
|
||||||
srcWindow.haveInitialisedWindow = true;
|
srcWindow.haveInitialisedWindow = true;
|
||||||
});
|
});
|
||||||
// Close open windows when unloading main window
|
// Close open windows when unloading main window
|
||||||
|
|
Ładowanie…
Reference in New Issue