summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
authorDarjus Loktevic <darjus@linux-6j1x.site>2010-03-02 21:27:03 -0800
committerDarjus Loktevic <darjus@linux-6j1x.site>2010-03-02 21:27:03 -0800
commitf24d3182f08480502cbf7bcfd1a0775e57722197 (patch)
treec9cb769bc83ee0f94a4b78ad2e079bb998f6e615 /src/findbar.cpp
parentrekonq 0.3.97 (diff)
downloadrekonq-f24d3182f08480502cbf7bcfd1a0775e57722197.tar.xz
* Added continue search by <Enter> key (similar to Firefox, enter the
search term and press <Enter> for next result). * Removed focusNextPrevChild if the search fails as it does not seem to make sense. It's the same as you would press <Tab> to focus the next item on the page. Why "Search" should do that? Some context: found that when searching some websites, when the match is not found, the page would suddenly scroll to some location and focus a link or search edit. Hope this makes sense.
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index bb693ab0..03fe2180 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -82,6 +82,7 @@ FindBar::FindBar(QWidget *parent)
setFocusProxy(m_lineEdit);
m_lineEdit->setMaximumWidth(250);
connect(m_lineEdit, SIGNAL(textChanged(const QString &)), window, SLOT(find(const QString &)));
+ connect(m_lineEdit, SIGNAL(returnPressed()), mainwindow, SLOT(findNext()));
layout->addWidget(m_lineEdit);
// buttons