| 214 | } |
| 215 | |
| 216 | std::string KeyMapping::input_description(keysym_t ks) |
| 217 | { |
| 218 | for (auto iter : input_list[INPUTLIST_KEYBOARD_LATIN]) { |
| 219 | if (iter.type == SingleInput::IT_KEYBOARD) { |
| 220 | if (iter.which == ks) { |
| 221 | return iter.description; |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | for (auto iter : input_list[INPUTLIST_KEYBOARD_MISC]) { |
| 227 | if (iter.type == SingleInput::IT_KEYBOARD) { |
| 228 | if (iter.which == ks) { |
| 229 | return iter.description; |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | return ""; |
| 235 | } |
| 236 | |
| 237 | void KeyMapping::default_hotkeys() |
| 238 | { |
no outgoing calls
no test coverage detected