Module: RatatuiRuby::Event::Key::Navigation
- Included in:
- RatatuiRuby::Event::Key
- Defined in:
- lib/ratatui_ruby/event/key/navigation.rb
Overview
Methods and logic for navigation keys.
Instance Method Summary collapse
-
#standard? ⇒ Boolean
(also: #unmodified?)
Returns true if this is a standard key.
Instance Method Details
#standard? ⇒ Boolean Also known as: unmodified?
Returns true if this is a standard key.
Standard keys include: characters, Enter, Tab, arrow keys, navigation keys.
event.standard? # => true for "a", "enter", "up", etc.
18 19 20 |
# File 'lib/ratatui_ruby/event/key/navigation.rb', line 18 def standard? @kind == :standard end |