diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index a84a4f22d0..69e773c507 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -786,6 +786,7 @@ class TextEdit(PlainTextEdit): ev.setAccepted(False) return if self.snippet_manager.handle_key_press(ev): + self.completion_popup.hide() return if self.smarts.handle_key_press(ev, self): self.handle_keypress_completion(ev)