diff options
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 12 | ||||
-rw-r--r-- | src/urlbar/urlresolver.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 54045bf4..9460cf8a 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -261,28 +261,28 @@ void UrlBar::keyPressEvent(QKeyEvent *event) if (currentText.isEmpty()) return KLineEdit::keyPressEvent(event); - + // this handles the Modifiers + Return key combinations if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter) { - switch(event->modifiers()) + switch (event->modifiers()) { case Qt::AltModifier: loadRequestedUrl(currentText, Rekonq::NewFocusedTab); break; - + case Qt::ControlModifier: loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".com"))); break; - + case 0x06000000: // Qt::ControlModifier | Qt::ShiftModifier: loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".org"))); break; - + case Qt::ShiftModifier: loadRequestedUrl(guessUrlWithCustomFirstLevel(currentText, QL1S(".net"))); break; - + default: loadRequestedUrl(currentText); break; diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index a1459399..e7f41c7b 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -402,7 +402,7 @@ void UrlResolver::suggestionsReceived(const QString &text, const ResponseList &s { if (text == i.title) continue; - + urlString = i.url; if (urlString.isEmpty()) { |