Method: Event#alt?
- Defined in:
- lib/source/redshift/event.rb
#alt? ⇒ Boolean
call-seq:
evnt.alt? -> true or false
Returns true if the alt key was depressed during the event, false otherwise.
Document['#example'].listen(:click) {|element, event| puts "alt-clicked" if event.alt? }
alt-clicking element ‘#example’ produces:
alt-clicked
80 81 82 |
# File 'lib/source/redshift/event.rb', line 80 def alt? `this.__alt__` end |