From 3a3a8b20acf2970e0718f9f05aeff21074c63bc3 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 17 Dec 2010 15:17:07 +0100 Subject: When using Alt+Enter open website in new tab GCI Task by Furkan, thanks! :-) RB: 100210 BUG: 254372 --- src/urlbar/completionwidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/urlbar/completionwidget.cpp') diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp index fdfd3107..087a10a6 100644 --- a/src/urlbar/completionwidget.cpp +++ b/src/urlbar/completionwidget.cpp @@ -274,6 +274,13 @@ bool CompletionWidget::eventFilter(QObject *obj, QEvent *ev) case Qt::Key_Enter: case Qt::Key_Return: w = qobject_cast(parent()); + if(kev->modifiers() == Qt::AltModifier) + { + if(kev->key() == Qt::Key_Return || kev->key() == Qt::Key_Enter) + { + emit chosenUrl(w->text(), Rekonq::NewFocusedTab); + } + } if (!w->text().startsWith(QL1S("http://"), Qt::CaseInsensitive)) { -- cgit v1.2.1