1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: View shortcuts acting like global shortcuts

This commit is contained in:
WerWolv 2023-05-21 18:02:29 +02:00
parent 0563a59b1b
commit 2179c3c014

View File

@ -12,7 +12,7 @@ namespace hex {
} }
void ShortcutManager::addShortcut(View *view, const Shortcut &shortcut, const std::function<void()> &callback) { void ShortcutManager::addShortcut(View *view, const Shortcut &shortcut, const std::function<void()> &callback) {
view->m_shortcuts.insert({ shortcut, callback }); view->m_shortcuts.insert({ shortcut + CurrentView, callback });
} }
static Shortcut getShortcut(bool ctrl, bool alt, bool shift, bool super, bool focused, u32 keyCode) { static Shortcut getShortcut(bool ctrl, bool alt, bool shift, bool super, bool focused, u32 keyCode) {