| 7 | static ShortcutMap _shortcuts; |
| 8 | |
| 9 | static auto findShortcut(Shortcut id) |
| 10 | { |
| 11 | auto it = std::lower_bound(std::begin(_shortcuts), std::end(_shortcuts), id, [](const auto& a, const auto& b) { |
| 12 | return a.id < b; |
| 13 | }); |
| 14 | if (it == std::end(_shortcuts)) |
| 15 | { |
| 16 | return std::end(_shortcuts); |
| 17 | } |
| 18 | return it; |
| 19 | } |
| 20 | |
| 21 | void add(Shortcut id, StringId displayName, const ShortcutAction& action, const char* configName, const char* defaultBinding) |
| 22 | { |