mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 01:56:21 +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:
@@ -362,7 +362,15 @@ void AbstractView::doubleclick_event(MouseEvent& event)
|
||||
else if (!m_selection.contains(index))
|
||||
set_selection(index);
|
||||
|
||||
activate_selected();
|
||||
activate_or_edit_selected();
|
||||
}
|
||||
|
||||
void AbstractView::activate_or_edit_selected()
|
||||
{
|
||||
if (is_editable())
|
||||
begin_editing(selection().first());
|
||||
else
|
||||
activate_selected();
|
||||
}
|
||||
|
||||
void AbstractView::context_menu_event(ContextMenuEvent& event)
|
||||
|
||||
Reference in New Issue
Block a user