Class: MacOS::Keyboard
- Inherits:
-
Object
- Object
- MacOS::Keyboard
- Defined in:
- lib/macos/keyboard.rb
Overview
Simulates a macOS keyboard.
Instance Method Summary collapse
Instance Method Details
#type(text) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/macos/keyboard.rb', line 6 def type(text) text.chars.each do |character| key_down(character) key_up(character) end end |