Browse Source

SpaceAnalyzer: Ignore unhandled keydown events

This makes Action shortcuts work again. :^)
Sam Atkins 2 years ago
parent
commit
7c17e73c7f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp

+ 2 - 0
Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp

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