Key press event handler.
(self, event)
| 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.""" |
nothing calls this directly
no test coverage detected