diff --git a/Applications/Spreadsheet/SpreadsheetView.h b/Applications/Spreadsheet/SpreadsheetView.h index 8d1e341b23..608493a4dd 100644 --- a/Applications/Spreadsheet/SpreadsheetView.h +++ b/Applications/Spreadsheet/SpreadsheetView.h @@ -62,6 +62,7 @@ private: case KeyCode::Key_Right: case KeyCode::Key_Up: case KeyCode::Key_Down: + case KeyCode::Key_Return: return true; default: return false; @@ -106,9 +107,6 @@ private: virtual RefPtr create_widget() override { auto textbox = CellEditor::construct(); - textbox->on_return_pressed = [this] { - commit(); - }; textbox->on_escape_pressed = [this] { rollback(); };