Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

leArrowFunc

leArrowFunc( 
t_keyName
[ g_optionalArg ] 
) 
=> return value from the called function or function bound by default or nil

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

t_keyName

Text string specifying key name. Do not include <Key> in the argument passed to the function.

g_optionalArg

An optional argument to pass 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
 ⠀
X