awesome API documentation

# Module `awful.key`

### Info:

- Copyright: 2009 Julien Danjou
- Release: v3.5.6
- Author: Julien Danjou <julien@danjou.info>

## Functions

new (mod, _key, press, release) | Create a new key to use as binding.
match (_key, pressed_mod, pressed_key) | Compare a key object with modifiers and key.

## Tables

ignore_modifiers | Modifiers to ignore.

## Functions

new (mod, _key, press, release)
  Create a new key to use as binding. This function is useful to create several keys from one, because it will use the ignore_modifier variable to create more key with or without the ignored modifiers activated. For example if you want to ignore CapsLock in your keybinding (which is ignored by default by this function), creating key binding with this function will return 2 key objects: one with CapsLock on, and the other one with CapsLock off.

  ### Parameters:

  - mod
  - _key
  - press
  - release

  ### Returns:

  A table with one or several key objects.

  ### See also:

  key
match (_key, pressed_mod, pressed_key)
  Compare a key object with modifiers and key.

  ### Parameters:

  - _key The key object.
  - pressed_mod The modifiers to compare with.
  - pressed_key The key to compare with.

## Tables

ignore_modifiers
  Modifiers to ignore. By default this is initialized as { "Lock", "Mod2" } so the Caps Lock or Num Lock modifier are not taking into account by awesome when pressing keys.

  ### Fields:

  - Lock
  - Mod2

generated by LDoc 1.4.3 Last updated 2015-05-16 20:41:39