diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-24 11:42:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-24 11:42:11 +0200 |
commit | f52527ef9cdd88df186e8b56e64f2c95d0ed84a2 (patch) | |
tree | 911e376ff250f4b8210a7240fffe2c4d383e6015 /Libraries/LibGUI/IconView.cpp | |
parent | ece555b684a6e6dc46e471ba06b669ebfbfcc160 (diff) | |
download | serenity-f52527ef9cdd88df186e8b56e64f2c95d0ed84a2.zip |
LibGUI: Move editing key handling up to AbstractView
We want all views to respond to the editing key as long as the relevant
edit trigger is activated.
Diffstat (limited to 'Libraries/LibGUI/IconView.cpp')
-rw-r--r-- | Libraries/LibGUI/IconView.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Libraries/LibGUI/IconView.cpp b/Libraries/LibGUI/IconView.cpp index 42a7498d43..d1afb19ed6 100644 --- a/Libraries/LibGUI/IconView.cpp +++ b/Libraries/LibGUI/IconView.cpp @@ -610,14 +610,6 @@ void IconView::keydown_event(KeyEvent& event) if (!m_visual_row_count || !m_visual_column_count) return; - if (event.key() == KeyCode::Key_F2) { - if (is_editable() && edit_triggers() & EditTrigger::EditKeyPressed) { - begin_editing(cursor_index()); - event.accept(); - return; - } - } - if (event.key() == KeyCode::Key_Return) { activate_selected(); return; |