Mercurial > urwid-satext
comparison urwid_satext/keys.py @ 129:2a1880d5d450
keys: don't lower() shortcuts anymore
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Jul 2017 08:31:10 +0200 |
parents | 00b012549f88 |
children | 144bdf877d21 |
comparison
equal
deleted
inserted
replaced
128:2a6b8742e44a | 129:2a1880d5d450 |
---|---|
53 namespace_map = self._namespaces_actions.setdefault(namespace.lower(), set()) | 53 namespace_map = self._namespaces_actions.setdefault(namespace.lower(), set()) |
54 namespace_map.add(action) | 54 namespace_map.add(action) |
55 | 55 |
56 if action in self: | 56 if action in self: |
57 raise ConflictError("The action [{}] already exists".format(action)) | 57 raise ConflictError("The action [{}] already exists".format(action)) |
58 return super(ActionMap, self).__setitem__(action, shortcut.lower()) | 58 return super(ActionMap, self).__setitem__(action, shortcut) |
59 | 59 |
60 def __delitem__(self, action): | 60 def __delitem__(self, action): |
61 # we don't want to delete actions | 61 # we don't want to delete actions |
62 raise NotImplementedError | 62 raise NotImplementedError |
63 | 63 |