install_closure


Description:

public void install_closure (string action_name, uint key_val, ModifierType modifiers, Closure closure)

A Closure variant of install_action.

Installs a new action inside a BindingPool. The action is bound to key_val and modifiers.

The same action name can be used for multiple key_val, modifiers pairs.

When an action has been activated using activate the passed closure will be invoked.

Actions can be blocked with block_action and then unblocked using unblock_action.

Parameters:

this

a BindingPool

action_name

the name of the action

key_val

key symbol

modifiers

bitmask of modifiers

closure

a Closure