minor updates...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-10 05:01:45 +04:00
parent 10ce03ebdf
commit 1c45aed85f

View File

@ -127,18 +127,21 @@ var KEYBOARD_HANDLER_PROPAGATE = true
* ...
* }
*
* <key-def> can be:
* - explicit key code
* - key name, if present in _SPECIAL_KEYS)
* - key char (uppercase), as is returned by String.fromCharCode(...)
*
* <key-def> can be:
* - explicit key code, e.g. 65
* - key name, if present in _SPECIAL_KEYS, e.g. Enter
* - key char (uppercase), as is returned by String.fromCharCode(...) e.g. A
*
*
* NOTE: to rest what to use as <key-def> use toKeyCode(..) / toKeyName(..).
* NOTE: all fields are optional.
* NOTE: if a handler explicitly returns false then that will break the
* event propagation chain and exit the handler.
* i.e. no other matching handlers will be called.
* NOTE: a <css-selector> is used as a predicate to select a section to
* use. if multiple selectors match something then multiple sections
* will be resolved in order of occurance.
* will be resolved in order of occurrence.
*
* XXX might need to add meta information to generate sensible help...
*/