feat: Added primitive replace feature to find view

This commit is contained in:
WerWolv
2023-05-28 11:50:10 +02:00
parent ea756e620e
commit c8c3f5e753
4 changed files with 87 additions and 10 deletions

View File

@@ -37,6 +37,9 @@ namespace hex {
void ShortcutManager::process(const std::unique_ptr<View> &currentView, bool ctrl, bool alt, bool shift, bool super, bool focused, u32 keyCode) {
Shortcut pressedShortcut = getShortcut(ctrl, alt, shift, super, focused, keyCode);
if (ImGui::GetIO().WantTextInput)
return;
if (currentView->m_shortcuts.contains(pressedShortcut))
currentView->m_shortcuts[pressedShortcut]();
}