adds the hot key handler
key | string | string with the key name |
handler | function | the hot key handler |
view | object|string | optional: providing a view reference will add the handler to that view specifically; if set as a string, the hotkey will be added to all the relevant view instances (the string must be a valid view name) |
//global key handler
webix.UIManager.addHotKey("up", my_function);
//activates the handler only when focus is inside of myview
webix.UIManager.addHotKey("ctrl-up", my_function, myview);