summaryrefslogtreecommitdiff
path: root/Applications/Spreadsheet
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-28 20:49:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-28 20:49:51 +0200
commitc43f0f012d74cae216adf5199dc4a4d9207e1494 (patch)
tree90dca3b3e5036e9d412c32c9796abd56a901b74f /Applications/Spreadsheet
parent5daa19fdabe86ff76c1814abef3f6261a828c9d8 (diff)
downloadserenity-c43f0f012d74cae216adf5199dc4a4d9207e1494.zip
Spreadsheet: Enable the "any key pressed" edit trigger in spreadsheets
Diffstat (limited to 'Applications/Spreadsheet')
-rw-r--r--Applications/Spreadsheet/SpreadsheetView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Spreadsheet/SpreadsheetView.cpp b/Applications/Spreadsheet/SpreadsheetView.cpp
index 0909df33e7..733f9b7597 100644
--- a/Applications/Spreadsheet/SpreadsheetView.cpp
+++ b/Applications/Spreadsheet/SpreadsheetView.cpp
@@ -59,6 +59,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
m_table_view = add<GUI::TableView>();
m_table_view->set_grid_style(GUI::TableView::GridStyle::Both);
m_table_view->set_cursor_style(GUI::TableView::CursorStyle::Item);
+ m_table_view->set_edit_triggers(GUI::AbstractView::EditTrigger::EditKeyPressed | GUI::AbstractView::AnyKeyPressed | GUI::AbstractView::DoubleClicked);
m_table_view->row_header().set_visible(true);
m_table_view->set_model(SheetModel::create(*m_sheet));