Lines Matching defs:Keyboard
10 _KEYBOARD = 'keyboard'
13 class Keyboard(object):
14 """An emulated keyboard device used for UI automation."""
17 """Prepare an emulated keyboard device."""
19 # Create an emulated keyboard device.
20 self.keyboard = input_playback.InputPlayback()
21 self.keyboard.emulate(input_type=_KEYBOARD)
22 self.keyboard.find_connected_inputs()
35 self.keyboard.blocking_playback(filepath=event_file,
44 self.keyboard.blocking_playback(filepath=event_file,
49 if self.keyboard:
50 self.keyboard.close()