From 3e73926c001f82da10a98248929f9eb144f44827 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 5 Nov 2014 16:20:02 +0300 Subject: [PATCH] some cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/keyboard.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ui (gen4)/lib/keyboard.js b/ui (gen4)/lib/keyboard.js index d780960f..3db322b3 100755 --- a/ui (gen4)/lib/keyboard.js +++ b/ui (gen4)/lib/keyboard.js @@ -361,28 +361,6 @@ function getKeyHandlers(key, modifiers, keybindings, modes, shifted_keys, action } else if(handler in keybindings){ handler = keybindings[handler] - /* - // action name... - } else if(handler in actions){ - // build a handler... - // NOTE: 'handler' is changing in a loop, and so as to - // link it's specific value we need to construct a - // seporate closue, thus the odd construct below... - // XXX this is a bit non-uniform, marking this as an action - // and letting the caller decide how to make the call - // seems more logical... - handler = function(n){ - var f = function(){ return actions[n]() } - // make this doc-generator compatible -- inherit all - // the docs from the actual action... - f.__proto__ = actions[n] - // tell the doc generator about the action stuff... - f.action = n - - return f - }(handler) - */ - // actions... // // supported action format: