summaryrefslogtreecommitdiffstats
path: root/src/monthview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monthview.cpp')
-rw-r--r--src/monthview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/monthview.cpp b/src/monthview.cpp
index 202ef4a..5b56ee4 100644
--- a/src/monthview.cpp
+++ b/src/monthview.cpp
@@ -28,6 +28,9 @@ MonthView::MonthView(QWidget *parent)
m_year(QDate::currentDate().year()), m_month(QDate::currentDate().month())
{
setMinimumSize(420, 320);
+ // A click must move focus here, or it stays in the edit form and the
+ // view-scoped shortcuts and the Escape guard read the wrong widget.
+ setFocusPolicy(Qt::StrongFocus);
}
void MonthView::setMonth(int year, int month)