mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Spreadsheet: Keep value when clicking out of a cell
This commit is contained in:
parent
73b9cfac1b
commit
6219c3ec3c
2 changed files with 7 additions and 0 deletions
|
@ -186,6 +186,9 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
m_table_view->stop_editing();
|
||||
m_table_view->dispatch_event(event);
|
||||
};
|
||||
delegate->on_cell_focusout = [this](auto& index, auto& value) {
|
||||
m_table_view->model()->set_data(index, value);
|
||||
};
|
||||
return delegate;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue