Reputation: 63
If popup/window property modal
is set to true
, Esc key doesn't close it. Is there a way to overcome such behavior?
A tiny sample of the window:
webix.ui({
view:"popup",
position:"center",
height:400, width:400,
//modal:true
}).show();
http://webix.com/snippet/a7306fb0
Upvotes: 0
Views: 303
Reputation: 63
According to the Webix Documentation I've defined my own hotkey to close the particular popup window:
webix.UIManager.addHotKey("esc", function(view) {
if ($$("modalPop").isVisible() && $$("modalPop").config.modal) $$("modalPop").hide()
});
You can see how it works: http://webix.com/snippet/03e10ab9
Upvotes: 0