summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-03 16:25:34 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-03 16:25:34 +0100
commitbec0deb0925091d2b26038deed730c72af9c0a37 (patch)
tree0db8d5ced1763084ff645e88f3bb22bea8e1c44c /src/urlbar/urlbar.cpp
parentalso take 'application/futuresplash' mimetype in account for clickToFlash (diff)
downloadrekonq-bec0deb0925091d2b26038deed730c72af9c0a37.tar.xz
Let rekonq save file remotely
Andreas's comment was helpful: rekonq COULD save file remotely, but for same strange reason, KFileDialog::getSaveFileName() could not select remote files. Switching to getSaveUrl seems fixing the problem Ah... also a style clean up here. Sorry for the merged commit... BUG: 242675
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp12
1 files changed, 6 insertions, 6 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;