Method: Vedeu::Input::Mapper.keypress

Defined in:
lib/vedeu/input/mapper.rb

.keypress(key = nil, name = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Takes a key as a keypress and sends it to registered keymaps. If found, the associated action is fired, otherwise, we move to the next keymap or return false.

Examples:

Vedeu.keypress(key_name, keymap_name)

Parameters:

  • key (NilClass|String|Symbol) (defaults to: nil)
  • name (NilClass|Symbol|String) (defaults to: nil)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.

  • repository (NilClass|Vedeu::Repositories::Repository)

Returns:



26
27
28
# File 'lib/vedeu/input/mapper.rb', line 26

def keypress(key = nil, name = nil)
  new(key, name).keypress
end