Unclassified NewsBoard Code Reference

UnbGlobalRegisterKeyHandler function [JavaScript]

Register a key handler function

function UnbGlobalRegisterKeyHandler (keycode, ascii, flags, funcname, funcparam);

Parameters:

keycode
(int) Keycode to listen on
ascii
(int) ASCII value to listen on. Either keycode or ASCII code must
be specified
flags
(int) Key flags to listen on. Combination of:
1: Alt key
2: Control key
4: Shift key
funcname
(string) Key handler function name
funcparam
(string) Parameter to pass to the key handler function

Implementation file: unb_lib/common.js, line 307

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.