summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/urlbar.cpp6
-rw-r--r--src/urlbar/urlbar.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 2dca0ac0..0022bfaf 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -308,7 +308,7 @@ void UrlBar::paintEvent(QPaintEvent *event)
}
-void UrlBar::keyPressEvent(QKeyEvent *event)
+void UrlBar::keyReleaseEvent(QKeyEvent *event)
{
QString trimmedText = text().trimmed();
@@ -316,7 +316,7 @@ void UrlBar::keyPressEvent(QKeyEvent *event)
{
disconnect(_icon);
_icon->setIcon(KIcon("arrow-right"));
- return KLineEdit::keyPressEvent(event);
+ return KLineEdit::keyReleaseEvent(event);
}
// this handles the Modifiers + Return key combinations
@@ -357,7 +357,7 @@ void UrlBar::keyPressEvent(QKeyEvent *event)
event->accept();
}
- KLineEdit::keyPressEvent(event);
+ KLineEdit::keyReleaseEvent(event);
}
diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h
index 67c2a9c6..29531711 100644
--- a/src/urlbar/urlbar.h
+++ b/src/urlbar/urlbar.h
@@ -134,7 +134,7 @@ private Q_SLOTS:
protected:
void paintEvent(QPaintEvent *event);
- void keyPressEvent(QKeyEvent *event);
+ void keyReleaseEvent(QKeyEvent *event);
void focusInEvent(QFocusEvent *event);
void dropEvent(QDropEvent *event);
void mouseDoubleClickEvent(QMouseEvent *);