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

Fix bug and typo in framed.js (#4110)

This commit is contained in:
Simon Huber 2019-07-15 11:11:36 +02:00 committed by Jeremy Ruston
parent b67e088e55
commit e2bad34e89

View File

@ -79,7 +79,7 @@ function FramedEngine(options) {
// Add event listeners // Add event listeners
$tw.utils.addEventListeners(this.domNode,[ $tw.utils.addEventListeners(this.domNode,[
{name: "click",handlerObject: this,handlerMethod: "handleClickEvent"}, {name: "click",handlerObject: this,handlerMethod: "handleClickEvent"},
{name: "focus",handlerObject: this.widget,handlerMethod: "handleFocusEvent"}, {name: "focus",handlerObject: this,handlerMethod: "handleFocusEvent"},
{name: "input",handlerObject: this,handlerMethod: "handleInputEvent"}, {name: "input",handlerObject: this,handlerMethod: "handleInputEvent"},
{name: "keydown",handlerObject: this.widget,handlerMethod: "handleKeydownEvent"} {name: "keydown",handlerObject: this.widget,handlerMethod: "handleKeydownEvent"}
]); ]);
@ -157,8 +157,9 @@ FramedEngine.prototype.focus = function() {
/* /*
Handle the focus event Handle the focus event
*/ */
FramedEngine.prototype.handleFocusEvent = function() { FramedEngine.prototype.handleFocusEvent = function(event) {
this.widget.cancelPopups(); this.widget.cancelPopups();
return true;
}; };
/* /*