1
0
mirror of synced 2025-02-14 17:42:35 +01:00

fix: Properly trigger global shortcuts

This commit is contained in:
WerWolv 2025-02-06 22:34:34 +01:00
parent 4c284b224e
commit a588c96440

View File

@ -53,10 +53,12 @@ namespace hex::plugin::builtin {
callback();
else {
if (!ShortcutManager::runShortcut(shortcut, ContentRegistry::Views::getFocusedView())) {
if (!ShortcutManager::runShortcut(shortcut)) {
callback();
}
}
}
}
} else {
bool isSubmenu = (menuItems.begin() + 1)->get() == ContentRegistry::Interface::impl::SubMenuValue;