mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +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:
parent
0f0b37d137
commit
f86c074be8
Notes:
sideshowbarker
2024-07-19 03:12:05 +09:00
Author: https://github.com/awesomekling
Commit: f86c074be8
4 changed files with 12 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue