diff options
-rw-r--r-- | src/mainwindow.cpp | 3 | ||||
-rw-r--r-- | src/urlbar/urlresolver.h | 4 |
2 files changed, 5 insertions, 2 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); } diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h index 4608b103..57b3e11e 100644 --- a/src/urlbar/urlresolver.h +++ b/src/urlbar/urlresolver.h @@ -68,7 +68,7 @@ public: int image_height; QString bookmarkPath; - UrlSearchItem(const UrlSearchItem &item) + UrlSearchItem(const UrlSearchItem &item) : type(item.type) , url(item.url) , title(item.title) @@ -78,7 +78,7 @@ public: , image_height(item.image_height) {}; - UrlSearchItem() + UrlSearchItem() : type(UrlSearchItem::Undefined) , url(QString()) , title(QString()) |