i added the backspace as a hot key for a multiview but when i want to delete any text in an editor it activates the hot key function .
webix.UIManager.addHotKey(“Backspace”, function() {
$$(‘Home’).show();
return false;
}, $$(‘Multiview1’));
is there a way to block this event when any editor is open ?
event handler receives two parameters - currently active view and native event object. You can use event object to check is event was fired during edit operation.
webix.UIManager.addHotKey("Backspace", function(view, e) {
//focus in editor
if (e.target.tagName == "INPUT") return;
$$('Home').show();
return false;
}, $$('Multiview1'));