leArrowFunc
leArrowFunc(t_keyName[g_optionalArg] ) => return value from the called function or function bound by default ornil
Description
Executes the function specified in the layout environmental variable spaceFuncName, passing the ID of the current window, the key name, and the optional argument. If spaceFuncName is empty, this function executes the current non-enter function binding for the specified key name.
Arguments
|
Text string specifying key name. Do not include <Key> in the argument passed to the function. |
|
Value Returned
Passes on the return value from the called function, or the function bound by default, or nil.
Example
hiSetBindKeys("Layout"
list(list("<Key>Up EF" "leArrowFunc('Up')")
list("Ctrl<Key>Up EF" "leArrowFunc('Up' t)")
list("<Key>Down EF" "leArrowFunc('Down')")
list("Ctrl<Key>Down EF" "leArrowFunc('Down' t)")))
leHiCreateWire()
;; ...
where ('Up') represents pressing the Up arrow key and ('Up' t) represents pressing the Control key with the Up arrow key. When you are creating a wire, this sample code lets you press the Up or Down arrow key to place a default via to the next layer, above or below, respectively.
Return to top