diff --git a/Applications/Spreadsheet/SpreadsheetView.cpp b/Applications/Spreadsheet/SpreadsheetView.cpp index ff61ca5c81..b82eb1a38f 100644 --- a/Applications/Spreadsheet/SpreadsheetView.cpp +++ b/Applications/Spreadsheet/SpreadsheetView.cpp @@ -58,6 +58,8 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet) m_table_view = add(); m_table_view->set_model(SheetModel::create(*m_sheet)); + set_focus_proxy(m_table_view); + // FIXME: This is dumb. for (size_t i = 0; i < m_sheet->column_count(); ++i) { m_table_view->set_cell_painting_delegate(i + 1, make(*m_table_view)); diff --git a/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Applications/Spreadsheet/SpreadsheetWidget.cpp index 777062c9e1..52eeadb50c 100644 --- a/Applications/Spreadsheet/SpreadsheetWidget.cpp +++ b/Applications/Spreadsheet/SpreadsheetWidget.cpp @@ -123,6 +123,7 @@ void SpreadsheetWidget::setup_tabs() m_current_cell_label->set_enabled(false); m_current_cell_label->set_text(""); }; + m_selected_view->set_focus(true); }; if (first_tab_widget)