From 11736af9b5348f251b0e8a3cf90fdb960c877936 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 30 Jan 2005 15:38:08 +0000 Subject: fix --- (limited to 'korganizer/komonthview.cpp') diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 10e4f1d..4cefb26 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -967,7 +967,7 @@ void KOMonthView::updateView() //qDebug("KOMonthView::updateView() "); processSelectionChange(); // qDebug("---------------------------------------------------------------------+ "); - setFocus(); + mCells[0]->setFocus(); } void KOMonthView::resizeEvent(QResizeEvent * e) @@ -1131,19 +1131,20 @@ void KOMonthView::clearSelection() } void KOMonthView::keyPressEvent ( QKeyEvent * e ) { + //qDebug("KOMonthView::keyPressEvent "); switch(e->key()) { - break; case Key_Up: { emit prevMonth(); - setFocus(); + mCells[0]->setFocus(); } e->accept(); break; case Key_Down: { emit nextMonth(); - setFocus(); + mCells[0]->setFocus(); + } e->accept(); break; -- cgit v0.9.0.2