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.
26 27 28 |
# File 'lib/vedeu/input/mapper.rb', line 26 def keypress(key = nil, name = nil) new(key, name).keypress end |