Skip to content

Commit

Permalink
SpaceAnalyzer: Ignore unhandled keydown events
Browse files Browse the repository at this point in the history
This makes Action shortcuts work again. :^)
  • Loading branch information
AtkinsSJ authored and linusg committed Dec 14, 2022
1 parent 97e1577 commit 7c17e73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ void TreeMapWidget::keydown_event(GUI::KeyEvent& event)
set_viewpoint(m_viewpoint == 0 ? m_path.size() : m_viewpoint - 1);
else if (event.key() == KeyCode::Key_Right)
set_viewpoint(m_viewpoint == m_path.size() ? 0 : m_viewpoint + 1);
else
event.ignore();
}

void TreeMapWidget::mousewheel_event(GUI::MouseEvent& event)
Expand Down

0 comments on commit 7c17e73

Please sign in to comment.