fix: View shortcuts acting like global shortcuts
This commit is contained in:
parent
0563a59b1b
commit
2179c3c014
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user