From dee8ccd8b35222a3e678b976570898844bd1963b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 6 Feb 2021 13:35:53 +0100 Subject: [PATCH] Search box should select the text on open #645 --- nw/gui/doceditor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index fb2a07e6..9e4b8b89 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -1988,6 +1988,7 @@ class GuiDocEditSearch(QFrame): if theText is not None: self.searchBox.setText(theText) self.searchBox.setFocus() + self.searchBox.selectAll() if self.isRegEx: self._alertSearchValid(True) logger.verbose("Setting search text to '%s'" % theText)