From bc05998e4b503f13a85834c7c0f419db0faf380b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 18 Jan 2014 17:22:06 +0400 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- ui/lib/keyboard.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/lib/keyboard.js b/ui/lib/keyboard.js index 161f9097..8442ef12 100755 --- a/ui/lib/keyboard.js +++ b/ui/lib/keyboard.js @@ -208,6 +208,8 @@ function normalizeModifiers(c, a, s){ * in normal modes... * * + * NOTE: adding a key to the ignore list has the same effect as returning + * false form it's handler in the same context. * NOTE: it is not possible to do a shift-? as it is already shifted. * NOTE: if a key is not handled in a mode, that mode will not be * present in the resulting object. @@ -462,6 +464,8 @@ function getKeyHandlers(key, modifiers, keybindings, modes, shifted_keys){ * - action -- any arbitrary string that is not in the above categories. * * + * NOTE: adding a key to the ignore list has the same effect as returning + * false form it's handler in the same context. * NOTE: actions,the last case, are used for alias referencing, they will * never match a real key, but will get resolved in alias searches. * NOTE: to test what to use as use toKeyCode(..) / toKeyName(..). @@ -477,8 +481,8 @@ function getKeyHandlers(key, modifiers, keybindings, modes, shifted_keys){ * NOTE: the number keys are named with a leading hash '#' (e.g. '#8') * to avoid conflicsts with keys that have the code with the same * value (e.g. 'backspace' (8)). - * NOTE: one can use a doc(, ) as a shorthand to assign - * a docstring to a handler. + * NOTE: one can use a doc(, ) as a shorthand to + * assign a docstring to a handler. * it will only assign .doc attr and return the original function. * * XXX need an explicit way to prioritize modes...