def handleMouseButtonEvent(self, comp, event): PyGUIBase.handleMouseButtonEvent(self, comp, event) pos = self._getWebCoordinates(event.cursorPosition) if pos is None: return False else: if event.isKeyDown(): setFocusedComponent(self.component) self.webPage.handleMouseButtonEvent(pos, event.isKeyDown()) return True