diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-25 23:00:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-25 23:00:27 +0100 |
commit | b72b81dbd55d8176b1ba81dce11f0e155645c996 (patch) | |
tree | f69a395019e61c4abee3e05aba82e688f9fc63da | |
parent | Remove F6 and use ALT + D as secondary shorcut to open location (diff) | |
download | rekonq-b72b81dbd55d8176b1ba81dce11f0e155645c996.tar.xz |
accept CTRL + TAB events
-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()) |