summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet/SpreadsheetView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Spreadsheet/SpreadsheetView.h')
-rw-r--r--Userland/Applications/Spreadsheet/SpreadsheetView.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.h b/Userland/Applications/Spreadsheet/SpreadsheetView.h
index 6c2c3710e0..a2fa9c91d2 100644
--- a/Userland/Applications/Spreadsheet/SpreadsheetView.h
+++ b/Userland/Applications/Spreadsheet/SpreadsheetView.h
@@ -124,10 +124,14 @@ private:
commit();
on_cursor_key_pressed(event);
};
+ textbox->on_focusout = [this] {
+ on_cell_focusout(index(), value());
+ };
return textbox;
}
Function<void(GUI::KeyEvent&)> on_cursor_key_pressed;
+ Function<void(const GUI::ModelIndex&, const GUI::Variant&)> on_cell_focusout;
private:
bool m_has_set_initial_value { false };