From f20f8ca063abd322387a72f3f5a65c480f6a4233 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 08 Mar 2005 11:48:20 +0000 Subject: list weekview fix --- diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index c125ce9..f983ff9 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -1631,21 +1631,27 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e ) switch(e->key()) { case Key_Up: { - emit prevMonth(); - if ( mShowWeekView ) + if ( mShowWeekView ) { mCellsW[0]->setFocus(); - else + emit selectWeekNum ( currentWeek() - 1 ); + } + else { mCells[0]->setFocus(); + emit prevMonth(); + } } e->accept(); break; case Key_Down: { - emit nextMonth(); - if ( mShowWeekView ) + if ( mShowWeekView ) { mCellsW[0]->setFocus(); - else + emit selectWeekNum ( currentWeek() +1); + } + else { mCells[0]->setFocus(); + emit nextMonth(); + } } e->accept(); -- cgit v0.9.0.2