addHotKey

adds the hot key handler

void addHotKey(string key,function handler, [object obj] );

Parameters

keystringstring with the key name
handlerfunctionthe hot key handler
objobjectif provided, the handler will fire only when focus is in the target view

Example

//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);

See also
Back to top