1
Fork 0
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:
Brandon Hamilton 2021-05-31 11:01:23 +02:00 committed by Ali Mohammad Pur
parent 73b9cfac1b
commit 6219c3ec3c
2 changed files with 7 additions and 0 deletions

View file

@ -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;
};