From e2bad34e8977946ab0374e1f54a268f1fc16b6a1 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Mon, 15 Jul 2019 11:11:36 +0200 Subject: [PATCH] Fix bug and typo in framed.js (#4110) --- core/modules/editor/engines/framed.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/editor/engines/framed.js b/core/modules/editor/engines/framed.js index 5eee8255b..c807ffde9 100644 --- a/core/modules/editor/engines/framed.js +++ b/core/modules/editor/engines/framed.js @@ -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; }; /*