From 8942e8e65809c892caf2733ab513785a2cc76af7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Jan 2015 09:27:34 +0530 Subject: [PATCH] Hide completion popup when jumping to next placeholder --- src/calibre/gui2/tweak_book/editor/text.py | 1 + 1 file changed, 1 insertion(+) 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)