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


11
12
13
# File 'opal/browser/event/touch.rb', line 11

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

#ctrl!Object


15
16
17
# File 'opal/browser/event/touch.rb', line 15

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

#meta!Object


19
20
21
# File 'opal/browser/event/touch.rb', line 19

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

#shift!Object


23
24
25
# File 'opal/browser/event/touch.rb', line 23

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