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

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

Instance Method Summary collapse

Methods inherited from Definition

#bubbles=, #cancelable=

Instance Method Details

#alt!Object



9
10
11
# File 'opal/browser/event/touch.rb', line 9

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

#ctrl!Object



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

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

#meta!Object



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

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

#shift!Object



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

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