MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / register_hotkey

Method register_hotkey

src/module/src/module.cpp:1393–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391}
1392
1393utility::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
1412utility::Uuid Module::register_hotkey(
1413 int default_keycode,

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 5

whatMethod · 0.80
home_systemMethod · 0.80
nameFunction · 0.50
sendMethod · 0.45
uuidMethod · 0.45

Tested by

no test coverage detected