Simplify the document search widget

This commit is contained in:
Veronica Berglyd Olsen
2024-04-04 23:25:04 +02:00
parent cf9a141dc7
commit c6423ffc21
3 changed files with 33 additions and 40 deletions
+1 -1
View File
@@ -1270,7 +1270,7 @@ class GuiMain(QMainWindow):
@pyqtSlot()
def _keyPressEscape(self) -> None:
"""Process an escape keypress in the main window."""
if self.docEditor.docSearch.isVisible():
if self.docEditor.searchVisible():
self.docEditor.closeSearch()
elif SHARED.focusMode:
SHARED.setFocusMode(False)