-rw-r--r-- | korganizer/komonthview.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index c125ce9..f983ff9 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -1633,7 +1633,10 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e ) { - emit prevMonth(); - if ( mShowWeekView ) + if ( mShowWeekView ) { mCellsW[0]->setFocus(); - else + emit selectWeekNum ( currentWeek() - 1 ); + } + else { mCells[0]->setFocus(); + emit prevMonth(); + } } @@ -1643,7 +1646,10 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e ) { - emit nextMonth(); - if ( mShowWeekView ) + if ( mShowWeekView ) { mCellsW[0]->setFocus(); - else + emit selectWeekNum ( currentWeek() +1); + } + else { mCells[0]->setFocus(); + emit nextMonth(); + } |