-rw-r--r-- | korganizer/komonthview.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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; |