| 1391 | } |
| 1392 | |
| 1393 | utility::Uuid Module::register_hotkey( |
| 1394 | const std::string sequence, |
| 1395 | const std::string &hotkey_name, |
| 1396 | const std::string &description, |
| 1397 | const bool auto_repeat, |
| 1398 | const std::string &component) { |
| 1399 | try { |
| 1400 | |
| 1401 | int key, modifier; |
| 1402 | ui::Hotkey::sequence_to_key_and_modifier(sequence, key, modifier); |
| 1403 | return register_hotkey(key, modifier, hotkey_name, description, auto_repeat, component); |
| 1404 | |
| 1405 | } catch (std::exception &e) { |
| 1406 | spdlog::warn("{} : {} {}", name(), __PRETTY_FUNCTION__, e.what()); |
| 1407 | } |
| 1408 | |
| 1409 | return {}; |
| 1410 | } |
| 1411 | |
| 1412 | utility::Uuid Module::register_hotkey( |
| 1413 | int default_keycode, |