summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 7a4275b..ca0d542 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1722,10 +1722,14 @@ void MainWindow::keyPressEvent ( QKeyEvent * e )
case Qt::Key_L:
mView->viewManager()->showListView();
break;
case Qt::Key_N:
- mView->viewManager()->showNextXView();
- showSelectedDates = true;
+ if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton)
+ mView->viewManager()->showNextView();
+ else {
+ mView->viewManager()->showNextXView();
+ showSelectedDates = true;
+ }
break;
case Qt::Key_V:
mView->viewManager()->showTodoView();
break;