def send_key(self, args): # Get buffer id and event string. (buffer_id, event_string) = args.split(":") # Send event to buffer when found match buffer. if buffer_id in self.buffer_dict: self.buffer_dict[buffer_id].send_key_event(fake_key_event(event_string))
def send_key(self, buffer_id, event_string): # Send event to buffer when found match buffer. if buffer_id in self.buffer_dict: fake_key_event(event_string, self.buffer_dict[buffer_id])