mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Update framed.js
This commit is contained in:
parent
c647b42574
commit
345a6a0f90
|
@ -79,6 +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: "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"}
|
||||||
]);
|
]);
|
||||||
|
@ -152,6 +153,13 @@ FramedEngine.prototype.focus = function() {
|
||||||
this.domNode.select();
|
this.domNode.select();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Handle the focus event
|
||||||
|
*/
|
||||||
|
FramedEngine.prototype.handleFocusEvent = function() {
|
||||||
|
this.widget.cancelPopups();
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Handle a click
|
Handle a click
|
||||||
|
|
Loading…
Reference in New Issue
Block a user