i use webix.UIManager.addHotKey to add hot key, but it doesn’t work for F1~F12,
plese see here: http://webix.com/snippet/92d8f476
then i found the function “_keypress” of webix.UIManager use String.fromCharCode to translate keycode to string, this is not right, String.fromCharCode is used to translate unicode to string, not for keycode.
if change
codeid = this._keycode(String.fromCharCode(code), ctrl, shift, alt, meta);
to
codeid = this._keycode(code >=112 && code <=123 ? ‘F’ + (code-111) : String.fromCharCode(code), ctrl, shift, alt, meta);
in function “_keypress” of webix.UIManager.
then will be ok.
thanks.