Class: Browser::Event::Touch::Definition

Inherits:
Definition show all
Defined in:
opal/browser/event/touch.rb

Instance Method Summary collapse

Instance Method Details

#alt! ⇒ Object



13
14
15
# File 'opal/browser/event/touch.rb', line 13

def alt!
  `#@native.altKey = true`
end

#ctrl! ⇒ Object



17
18
19
# File 'opal/browser/event/touch.rb', line 17

def ctrl!
  `#@native.ctrlKey = true`
end

#meta! ⇒ Object



21
22
23
# File 'opal/browser/event/touch.rb', line 21

def meta!
  `#@native.metaKey = true`
end

#shift! ⇒ Object



25
26
27
# File 'opal/browser/event/touch.rb', line 25

def shift!
  `#@native.shiftKey = true`
end