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

This commit is contained in:
Simon Huber
2019-07-15 10:11:36 +01:00
committed by Jeremy Ruston
parent b67e088e55
commit e2bad34e89
+3 -2
View File
@@ -79,7 +79,7 @@ function FramedEngine(options) {
// Add event listeners
$tw.utils.addEventListeners(this.domNode,[
{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: "keydown",handlerObject: this.widget,handlerMethod: "handleKeydownEvent"}
]);
@@ -157,8 +157,9 @@ FramedEngine.prototype.focus = function() {
/*
Handle the focus event
*/
FramedEngine.prototype.handleFocusEvent = function() {
FramedEngine.prototype.handleFocusEvent = function(event) {
this.widget.cancelPopups();
return true;
};
/*