2009-08-20 16:18:52 +02:00
|
|
|
--- awesome key API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
|
|
module("key")
|
|
|
|
|
|
|
|
--- Key object.
|
|
|
|
-- @field key The key to press to triggers an event.
|
|
|
|
-- @field keysym Same as key, but return the name of the key symbol. It can
|
|
|
|
-- be identical to key, but for characters like '.' it will return 'period'.
|
|
|
|
-- @field modifiers The modifier key that should be pressed while the key is
|
|
|
|
-- pressed. An array with all the modifiers. Valid modifiers are: Any, Mod1,
|
|
|
|
-- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control.
|
|
|
|
-- @class table
|
|
|
|
-- @name key
|
|
|
|
|
|
|
|
--- Add a signal.
|
|
|
|
-- @param name A signal name.
|
2009-08-30 06:20:52 +02:00
|
|
|
-- @param func A function to call when the signal is emitted.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Remove a signal.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to remove.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Emit a signal.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param ... Various arguments, optional.
|
|
|
|
-- @name emit_signal
|
|
|
|
-- @class function
|
2010-09-17 17:10:53 +02:00
|
|
|
|
|
|
|
--- Get the number of instances.
|
|
|
|
-- @return The number of key objects alive.
|
|
|
|
-- @name instances
|
|
|
|
-- @class function
|