This seemed to fix the test on the local machine

This commit is contained in:
Veronica K. B. Olsen committed 2020-06-17 21:28:22 +02:00
1 parent b2747baf6d
commit 5832d3db71
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -593,7 +593,7 @@ class GuiDocEditor(QTextEdit):
as it is triggered on every keypress when typing.
"""
self.hasSelection = self.textCursor().hasSelection()
if not self.hasFocus():
if self.docSearch.searchBox.hasFocus():
# Block the event when the focus is on the search bar.
return