| 2213 | } |
| 2214 | |
| 2215 | vector<int> command_to_keys(command_type cmd) |
| 2216 | { |
| 2217 | KeymapContext context = context_for_command(cmd); |
| 2218 | vector<int> result; |
| 2219 | |
| 2220 | if (context == KMC_NONE) |
| 2221 | return result; |
| 2222 | |
| 2223 | for (auto pair : _cmds_to_keys[context]) |
| 2224 | if (pair.first == cmd) |
| 2225 | result.push_back(pair.second); |
| 2226 | return result; |
| 2227 | } |
| 2228 | |
| 2229 | KeymapContext context_for_command(command_type cmd) |
| 2230 | { |
no test coverage detected