mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Spreadsheet: Keep value when clicking out of a cell
This commit is contained in:
parent
73b9cfac1b
commit
6219c3ec3c
Notes:
sideshowbarker
2024-07-18 17:07:47 +09:00
Author: https://github.com/brandonhamilton 🔰
Commit: 6219c3ec3c
Pull-request: https://github.com/SerenityOS/serenity/pull/7619
Issue: https://github.com/SerenityOS/serenity/issues/7590
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