mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
fix: Properly trigger shortcuts on selected view on macOS
This commit is contained in:
@@ -51,8 +51,9 @@ namespace hex::plugin::builtin {
|
||||
if (menu::menuItemEx(Lang(name), icon, shortcut, selectedCallback(), enabledCallback())) {
|
||||
if (shortcut == Shortcut::None)
|
||||
callback();
|
||||
else
|
||||
ShortcutManager::runShortcut(shortcut, view);
|
||||
else {
|
||||
ShortcutManager::runShortcut(shortcut, ContentRegistry::Views::getFocusedView());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bool isSubmenu = (menuItems.begin() + 1)->get() == ContentRegistry::Interface::impl::SubMenuValue;
|
||||
|
||||
Reference in New Issue
Block a user