From bbd6e708681fecd3fcb549e0252d91e23f753d40 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 17 Jun 2020 22:39:52 +0200 Subject: [PATCH] Forgot to save the file ... --- nw/gui/doceditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index ab76adfb..eadce6ff 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -594,7 +594,8 @@ class GuiDocEditor(QTextEdit): """ self.hasSelection = self.textCursor().hasSelection() if self.docSearch.searchBox.hasFocus(): - # Block the event when the focus is on the search bar. + # Block the event when the focus is on the search bar as it + # seems to be capturing the return key. return if keyEvent.modifiers() == Qt.ShiftModifier: