mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-02 04:10:11 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d6218a10f0
commit
3e73926c00
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user