MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / keyPressEvent

Method keyPressEvent

python/examples/custom_tooltip.py:18–25  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

16 self.adjustSize()
17
18 def keyPressEvent(self, event):
19 # This causes the fake tooltip to be closed when you hit Esc
20 if event.key() == Qt.Key_Escape:
21 print("Escape key pressed")
22 self.close()
23 event.accept()
24 else:
25 super().keyPressEvent(event)
26
27 def showEvent(self, event):
28 # This forces the fake tooltip to be focused

Callers

nothing calls this directly

Calls 2

keyMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected