Class: Delirium::Platform::Linux::Keyboard
- Inherits:
-
Base::Keyboard
- Object
- Base::Keyboard
- Delirium::Platform::Linux::Keyboard
- Defined in:
- lib/delirium/platform/linux/keyboard.rb
Instance Method Summary collapse
Instance Method Details
#key_down(key:) ⇒ Object
9 10 11 |
# File 'lib/delirium/platform/linux/keyboard.rb', line 9 def key_down(key:) `xdotool keydown '#{key}'` end |
#key_press(key:) ⇒ Object
5 6 7 |
# File 'lib/delirium/platform/linux/keyboard.rb', line 5 def key_press(key:) `xdotool type '#{key}'` end |
#key_up(key:) ⇒ Object
13 14 15 |
# File 'lib/delirium/platform/linux/keyboard.rb', line 13 def key_up(key:) `xdotool keyup '#{key}'` end |
#write(string:) ⇒ Object
17 18 19 |
# File 'lib/delirium/platform/linux/keyboard.rb', line 17 def write(string:) `xdotool type '#{string}'` end |