feat: Highlight main menu item when using a shortcut

This commit is contained in:
WerWolv
2025-01-01 16:19:38 +01:00
parent 0a55f4bf83
commit 6a3b10111f
7 changed files with 77 additions and 26 deletions

View File

@@ -591,6 +591,8 @@ namespace hex {
void Window::frame() {
auto &io = ImGui::GetIO();
ShortcutManager::resetLastActivatedMenu();
// Loop through all views and draw them
for (auto &[name, view] : ContentRegistry::Views::impl::getEntries()) {
ImGui::GetCurrentContext()->NextWindowData.ClearFlags();