diff --git a/lib/libimhex/source/api/shortcut_manager.cpp b/lib/libimhex/source/api/shortcut_manager.cpp index ca5b69ebe..8bf8b615c 100644 --- a/lib/libimhex/source/api/shortcut_manager.cpp +++ b/lib/libimhex/source/api/shortcut_manager.cpp @@ -367,7 +367,11 @@ namespace hex { if (keyCode != 0) s_prevShortcut = Shortcut(pressedShortcut.getKeys()); - runShortcut(pressedShortcut, currentView); + const auto inheritedShortcutsView = currentView->getMenuItemInheritView(); + if (!runShortcut(pressedShortcut, currentView)) { + if (inheritedShortcutsView != nullptr) + runShortcut(pressedShortcut, inheritedShortcutsView); + } } void ShortcutManager::processGlobals(bool ctrl, bool alt, bool shift, bool super, u32 keyCode) {