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

Method _key_press

lib/matplotlib/backend_managers.py:346–353  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

344 self._callbacks.process(s, event)
345
346 def _key_press(self, event):
347 if event.key is None or self.keypresslock.locked():
348 return
349
350 name = self._keys.get(event.key, None)
351 if name is None:
352 return
353 self.trigger_tool(name, canvasevent=event)
354
355 @property
356 def tools(self):

Callers

nothing calls this directly

Calls 3

trigger_toolMethod · 0.95
lockedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected