Esempio n. 1
0
 def do_key_release_event (self, event):
     if not event.send_event:
         if self.xephyr_window:
             dprint ("Resending key release; keycode = 0x%x, state = 0x%x", event.hardware_keycode, event.state)
             xlib.send_key_event (self.xephyr_window, False, event.time, event.hardware_keycode, event.state)
     
     return True
Esempio n. 2
0
 def do_key_press_event (self, event):
     if not event.send_event:
         if self.xephyr_window:
             dprint ("Resending key press; keycode = 0x%x, state = 0x%x", event.hardware_keycode, event.state)
             xlib.send_key_event (self.xephyr_window, True, event.time, event.hardware_keycode, event.state)
     
     return True