| 1688 | {k: [] for k in mpl.rcParams if k.startswith("keymap.")})) |
| 1689 | |
| 1690 | def stop_typing(self): |
| 1691 | if self.capturekeystrokes: |
| 1692 | self._on_stop_typing() |
| 1693 | self._on_stop_typing = None |
| 1694 | notifysubmit = True |
| 1695 | else: |
| 1696 | notifysubmit = False |
| 1697 | self.capturekeystrokes = False |
| 1698 | self.cursor.set_visible(False) |
| 1699 | self.ax.get_figure(root=True).canvas.draw() |
| 1700 | if notifysubmit and self.eventson: |
| 1701 | # Because process() might throw an error in the user's code, only |
| 1702 | # call it once we've already done our cleanup. |
| 1703 | self._observers.process('submit', self.text) |
| 1704 | |
| 1705 | @_call_with_reparented_event |
| 1706 | def _click(self, event): |