diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-24 21:20:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-24 21:20:54 +0200 |
commit | f86c074be8f83ecbbcaacef47683cddc23e6d936 (patch) | |
tree | f2df15d21b4186c2ee1bf5f3ef42080bbd6c40c1 /Libraries/LibGUI/AbstractTableView.cpp | |
parent | 0f0b37d137207fa838d26045cf275d89d5a8af5e (diff) | |
download | serenity-f86c074be8f83ecbbcaacef47683cddc23e6d936.zip |
LibGUI: Pressing Return in an editable TableView should begin editing
This matches what happens when you double-click on a cell.
Diffstat (limited to 'Libraries/LibGUI/AbstractTableView.cpp')
-rw-r--r-- | Libraries/LibGUI/AbstractTableView.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Libraries/LibGUI/AbstractTableView.cpp b/Libraries/LibGUI/AbstractTableView.cpp index 4e7433bf5f..f312cc7d28 100644 --- a/Libraries/LibGUI/AbstractTableView.cpp +++ b/Libraries/LibGUI/AbstractTableView.cpp @@ -474,10 +474,7 @@ void AbstractTableView::doubleclick_event(MouseEvent& event) if (event.y() < header_height()) return; if (!selection().is_empty()) { - if (is_editable()) - begin_editing(selection().first()); - else - activate_selected(); + activate_or_edit_selected(); } } } |