def keyCombo(self, comboString): if config.debugSearching: logger.log("Pressing keys '%s' into %s" % (comboString, self.getLogString())) if self.focusable: if not self.focused: try: self.grabFocus() except Exception: logger.log("Node is focusable but I can't grabFocus!") else: logger.log("Node is not focusable; trying key combo anyway") rawinput.keyCombo(comboString)
def keyCombo(combo): if focus.widget.node: focus.widget.node.keyCombo(combo) else: rawinput.keyCombo(combo)