Class: Reflex::KeyEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/reflex/key_event.rb

Instance Method Summary collapse

Instance Method Details

#down?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/reflex/key_event.rb', line 16

def down? ()
  get_type == TYPE_DOWN
end

#inspectObject



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

#typeObject



12
13
14
# File 'lib/reflex/key_event.rb', line 12

def type ()
  TYPE2SYM[get_type] || :none
end

#up?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/reflex/key_event.rb', line 20

def up? ()
  get_type == TYPE_UP
end