From 300de8fb15aa11cd0731288e39593436caf98366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 2 Apr 2020 17:09:07 +0200 Subject: [PATCH] [apps/calculation] HistoryViewCell: when changing SubviewType, set the right subcell as first responder! This fixes the following bug: when selecting a cell whose content is too long to be displayed, the scrolling is broken --- apps/calculation/history_view_cell.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/calculation/history_view_cell.cpp b/apps/calculation/history_view_cell.cpp index e706d847f..9210a2984 100644 --- a/apps/calculation/history_view_cell.cpp +++ b/apps/calculation/history_view_cell.cpp @@ -30,6 +30,7 @@ void HistoryViewCellDataSource::setSelectedSubviewType(SubviewType subviewType, if (selectedCell) { selectedCell->reloadSubviewHighlight(); selectedCell->cellDidSelectSubview(subviewType, previousSubviewType); + Container::activeApp()->setFirstResponder(selectedCell); } if (previouslySelectedCell) { previouslySelectedCell->cellDidSelectSubview(SubviewType::Input);