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