diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-24 21:35:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-24 21:35:47 +0200 |
commit | d3adbed23133d652092c74721d7158229445a125 (patch) | |
tree | 086435ddc80d1a58879eaf68efbf1b7e07610f37 /Libraries/LibGUI/IconView.cpp | |
parent | d8553a64064cdd67da826905b904c9a2c4e27bf5 (diff) | |
download | serenity-d3adbed23133d652092c74721d7158229445a125.zip |
LibGUI: Move keyboard item activation up to AbstractView
All views want the same behavior, so move this to the base class. :^)
Diffstat (limited to 'Libraries/LibGUI/IconView.cpp')
-rw-r--r-- | Libraries/LibGUI/IconView.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Libraries/LibGUI/IconView.cpp b/Libraries/LibGUI/IconView.cpp index d1afb19ed6..442a7c9fa9 100644 --- a/Libraries/LibGUI/IconView.cpp +++ b/Libraries/LibGUI/IconView.cpp @@ -603,20 +603,6 @@ void IconView::set_selection(const ModelIndex& new_index) AbstractView::set_selection(new_index); } -void IconView::keydown_event(KeyEvent& event) -{ - if (!model()) - return; - if (!m_visual_row_count || !m_visual_column_count) - return; - - if (event.key() == KeyCode::Key_Return) { - activate_selected(); - return; - } - AbstractView::keydown_event(event); -} - void IconView::move_cursor(CursorMovement movement, SelectionUpdate selection_update) { if (!model()) |