Class: Reflex::KeyEvent
- Inherits:
-
Object
- Object
- Reflex::KeyEvent
- Defined in:
- lib/reflex/key_event.rb
Instance Method Summary collapse
Instance Method Details
#down? ⇒ Boolean
16 17 18 |
# File 'lib/reflex/key_event.rb', line 16 def down? () get_type == TYPE_DOWN end |
#inspect ⇒ Object
24 25 26 |
# File 'lib/reflex/key_event.rb', line 24 def inspect () "#<Reflex::KeyEvent type:#{type} chars:'#{chars}' code:#{code} mod:#{modifiers} repeat:#{repeat} capture?:#{capture?}>" end |
#type ⇒ Object
12 13 14 |
# File 'lib/reflex/key_event.rb', line 12 def type () TYPE2SYM[get_type] || :none end |
#up? ⇒ Boolean
20 21 22 |
# File 'lib/reflex/key_event.rb', line 20 def up? () get_type == TYPE_UP end |