1
0
mirror of synced 2025-02-16 02:22:37 +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(); callback();
else { else {
if (!ShortcutManager::runShortcut(shortcut, ContentRegistry::Views::getFocusedView())) { if (!ShortcutManager::runShortcut(shortcut, ContentRegistry::Views::getFocusedView())) {
if (!ShortcutManager::runShortcut(shortcut)) {
callback(); callback();
} }
} }
} }
}
} else { } else {
bool isSubmenu = (menuItems.begin() + 1)->get() == ContentRegistry::Interface::impl::SubMenuValue; bool isSubmenu = (menuItems.begin() + 1)->get() == ContentRegistry::Interface::impl::SubMenuValue;