From f24d3182f08480502cbf7bcfd1a0775e57722197 Mon Sep 17 00:00:00 2001 From: Darjus Loktevic Date: Tue, 2 Mar 2010 21:27:03 -0800 Subject: * Added continue search by key (similar to Firefox, enter the search term and press 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 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. --- src/findbar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/findbar.cpp') 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 -- cgit v1.2.1