mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Shortcuts not getting dispatched to menu inherit view correctly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user