Skip to content
Snippets Groups Projects
Commit 14f916f7 authored by mae's avatar mae
Browse files

close tab order chain the the embedded find toolbar

parent 9b59df0b
No related branches found
No related tags found
No related merge requests found
...@@ -481,3 +481,16 @@ void FindToolBar::openFind() ...@@ -481,3 +481,16 @@ void FindToolBar::openFind()
m_currentDocumentFind->highlightAll(getFindText(), m_plugin->findFlags()); m_currentDocumentFind->highlightAll(getFindText(), m_plugin->findFlags());
selectFindText(); selectFindText();
} }
bool FindToolBar::focusNextPrevChild(bool next)
{
// close tab order change
if (next && m_ui.replaceAllButton->hasFocus())
m_ui.findEdit->setFocus(Qt::TabFocusReason);
else if (!next && m_ui.findEdit->hasFocus())
m_ui.replaceAllButton->setFocus(Qt::TabFocusReason);
else
return QToolBar::focusNextPrevChild(next);
return true;
}
...@@ -79,6 +79,9 @@ private slots: ...@@ -79,6 +79,9 @@ private slots:
void updateActions(); void updateActions();
void findFlagsChanged(); void findFlagsChanged();
protected:
bool focusNextPrevChild(bool next);
private: private:
bool setFocusToCurrentFindSupport(); bool setFocusToCurrentFindSupport();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment