0x004BE3F3
| 364 | |
| 365 | // 0x004BE3F3 |
| 366 | void resetShortcuts() |
| 367 | { |
| 368 | const auto& shortcutDefs = Input::ShortcutManager::getList(); |
| 369 | |
| 370 | auto& shortcuts = _config.shortcuts; |
| 371 | shortcuts.clear(); |
| 372 | |
| 373 | for (const auto& def : shortcutDefs) |
| 374 | { |
| 375 | shortcuts[def.id] = YAML::Node(def.defaultBinding).as<KeyboardShortcut>(); |
| 376 | } |
| 377 | |
| 378 | write(); |
| 379 | } |
| 380 | } |