-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() | |||
967 | //qDebug("KOMonthView::updateView() "); | 967 | //qDebug("KOMonthView::updateView() "); |
968 | processSelectionChange(); | 968 | processSelectionChange(); |
969 | // qDebug("---------------------------------------------------------------------+ "); | 969 | // qDebug("---------------------------------------------------------------------+ "); |
970 | setFocus(); | 970 | mCells[0]->setFocus(); |
971 | } | 971 | } |
972 | 972 | ||
973 | void KOMonthView::resizeEvent(QResizeEvent * e) | 973 | void KOMonthView::resizeEvent(QResizeEvent * e) |
@@ -1131,19 +1131,20 @@ void KOMonthView::clearSelection() | |||
1131 | } | 1131 | } |
1132 | void KOMonthView::keyPressEvent ( QKeyEvent * e ) | 1132 | void KOMonthView::keyPressEvent ( QKeyEvent * e ) |
1133 | { | 1133 | { |
1134 | //qDebug("KOMonthView::keyPressEvent "); | ||
1134 | switch(e->key()) { | 1135 | switch(e->key()) { |
1135 | break; | ||
1136 | case Key_Up: | 1136 | case Key_Up: |
1137 | { | 1137 | { |
1138 | emit prevMonth(); | 1138 | emit prevMonth(); |
1139 | setFocus(); | 1139 | mCells[0]->setFocus(); |
1140 | } | 1140 | } |
1141 | e->accept(); | 1141 | e->accept(); |
1142 | break; | 1142 | break; |
1143 | case Key_Down: | 1143 | case Key_Down: |
1144 | { | 1144 | { |
1145 | emit nextMonth(); | 1145 | emit nextMonth(); |
1146 | setFocus(); | 1146 | mCells[0]->setFocus(); |
1147 | |||
1147 | } | 1148 | } |
1148 | e->accept(); | 1149 | e->accept(); |
1149 | break; | 1150 | break; |