summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 16f1e92a..9cd56daa 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1173,6 +1173,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_Tab))
{
emit ctrlTabPressed();
+ event->accept();
return;
}
@@ -1180,6 +1181,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
if ((event->modifiers() == Qt::ControlModifier + Qt::ShiftModifier) && (event->key() == Qt::Key_Backtab))
{
emit shiftCtrlTabPressed();
+ event->accept();
return;
}
@@ -1214,6 +1216,7 @@ bool MainWindow::event(QEvent *event)
}
}
}
+
return KMainWindow::event(event);
}