Revert "Make input fields dismiss their popups when the ... (#4579)" (#4586)

This reverts commit 4efcad46f3.
optimising-macrocalls
Simon Huber 2020-04-20 20:26:54 +02:00 zatwierdzone przez GitHub
rodzic 86d7564661
commit 39d532a4a0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 16 usunięć

Wyświetl plik

@ -55,8 +55,7 @@ function SimpleEngine(options) {
// Add an input event handler
$tw.utils.addEventListeners(this.domNode,[
{name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
{name: "input", handlerObject: this, handlerMethod: "handleInputEvent"},
{name: "blur", handlerObject: this, handlerMethod: "handleBlurEvent"}
{name: "input", handlerObject: this, handlerMethod: "handleInputEvent"}
]);
// Insert the element into the DOM
this.parentNode.insertBefore(this.domNode,this.nextSibling);
@ -134,20 +133,6 @@ SimpleEngine.prototype.handleFocusEvent = function(event) {
return true;
};
/*
Handle a dom "blur" event
*/
SimpleEngine.prototype.handleBlurEvent = function(event) {
if(this.widget.editFocusPopup) {
$tw.popup.triggerPopup({
domNode: this.domNode,
title: this.widget.editFocusPopup,
wiki: this.widget.wiki
});
}
return true;
};
/*
Create a blank structure representing a text operation
*/