Method
__init__
(self, bindings, on_match = None, on_nomatch = None,
on_key = None)
Source from the content-addressed store, hash-verified
| 9 | |
| 10 | class Keymap: |
| 11 | def __init__(self, bindings, on_match = None, on_nomatch = None, |
| 12 | on_key = None): |
| 13 | self._on_match = on_match |
| 14 | self._on_nomatch = on_nomatch |
| 15 | self._on_key = on_key |
| 16 | self._top = {} |
| 17 | self._cur = self._top |
| 18 | self.trace = [] |
| 19 | self.register(bindings) |
| 20 | |
| 21 | def handle_input(self): |
| 22 | self._doread = True |
Callers
nothing calls this directly
Tested by
no test coverage detected