mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 21:28:40 +00:00
LibGUI: Pressing Return in an editable TableView should begin editing
This matches what happens when you double-click on a cell.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user