MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / keyPressEvent

Method keyPressEvent

lib/matplotlib/backends/backend_qt.py:375–380  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

373 guiEvent=event)._process()
374
375 def keyPressEvent(self, event):
376 key = self._get_key(event)
377 if key is not None and self.figure is not None:
378 KeyEvent("key_press_event", self,
379 key, *self.mouseEventCoords(),
380 guiEvent=event)._process()
381
382 def keyReleaseEvent(self, event):
383 key = self._get_key(event)

Callers 1

test_correct_keyFunction · 0.45

Calls 4

_get_keyMethod · 0.95
mouseEventCoordsMethod · 0.95
KeyEventClass · 0.90
_processMethod · 0.80

Tested by 1

test_correct_keyFunction · 0.36