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

Method _on_key_press

lib/matplotlib/widgets.py:4303–4311  ·  view source on GitHub ↗

Key press event handler.

(self, event)

Source from the content-addressed store, hash-verified

4301 self._draw_polygon()
4302
4303 def _on_key_press(self, event):
4304 """Key press event handler."""
4305 # Remove the pending vertex if entering the 'move_vertex' or
4306 # 'move_all' mode
4307 if (not self._selection_completed
4308 and ('move_vertex' in self._state or
4309 'move_all' in self._state)):
4310 self._xys.pop()
4311 self._draw_polygon()
4312
4313 def _on_key_release(self, event):
4314 """Key release event handler."""

Callers

nothing calls this directly

Calls 2

_draw_polygonMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected