SpaceAnalyzer: Ignore unhandled keydown events

This makes Action shortcuts work again. :^)
This commit is contained in:
Sam Atkins 2022-12-14 15:52:26 +00:00 committed by Linus Groh
parent 97e157708f
commit 7c17e73c7f
Notes: sideshowbarker 2024-07-17 03:11:50 +09:00

View file

@ -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)