mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Some shortcuts not working correctly on macOS
This commit is contained in:
@@ -48,8 +48,12 @@ namespace hex::plugin::builtin {
|
||||
callback();
|
||||
}
|
||||
} else if (menuItems.size() == 1) {
|
||||
if (menu::menuItemEx(Lang(name), icon, shortcut, selectedCallback(), enabledCallback() && (view == nullptr || view->isFocused())))
|
||||
callback();
|
||||
if (menu::menuItemEx(Lang(name), icon, shortcut, selectedCallback(), enabledCallback())) {
|
||||
if (shortcut == Shortcut::None)
|
||||
callback();
|
||||
else
|
||||
ShortcutManager::runShortcut(shortcut, view);
|
||||
}
|
||||
} else {
|
||||
bool isSubmenu = (menuItems.begin() + 1)->get() == ContentRegistry::Interface::impl::SubMenuValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user