Un-bind a shortcut key.
(self, contexts: Sequence[str], key: str)
| 704 | |
| 705 | @command.command("console.key.unbind") |
| 706 | def key_unbind(self, contexts: Sequence[str], key: str) -> None: |
| 707 | """ |
| 708 | Un-bind a shortcut key. |
| 709 | """ |
| 710 | try: |
| 711 | self.master.keymap.remove(key, contexts) |
| 712 | except ValueError as v: |
| 713 | raise exceptions.CommandError(v) |
| 714 | |
| 715 | def _keyfocus(self): |
| 716 | kwidget = self.master.window.current("keybindings") |