| 55 | } |
| 56 | |
| 57 | StringId getName(Shortcut id) |
| 58 | { |
| 59 | auto it = findShortcut(id); |
| 60 | if (it == std::end(_shortcuts) || it->id != id) |
| 61 | { |
| 62 | return 0xFFFF; // TODO: String-id null |
| 63 | } |
| 64 | |
| 65 | return it->displayName; |
| 66 | } |
| 67 | |
| 68 | const ShortcutMap& getList() |
| 69 | { |
no test coverage detected