tqt paytoedit: enable up/down keys - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e361a8549c1d9686727f0e6f4994843084104023 DIR parent aac9826e1b2a155a1c380f37b93fa6b505232818 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sat, 4 May 2019 04:42:39 +0200 qt paytoedit: enable up/down keys useful if multiline, and no harm(?) otherwise Diffstat: M electrum/gui/qt/completion_text_ed… | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/qt/completion_text_edit.py b/electrum/gui/qt/completion_text_edit.py t@@ -106,10 +106,10 @@ class CompletionTextEdit(ButtonsTextEdit): self.completer.complete(cr) def is_special_key(self, e): - if self.completer != None and self.completer.popup().isVisible(): - if e.key() in [Qt.Key_Enter, Qt.Key_Return]: + if self.completer and self.completer.popup().isVisible(): + if e.key() in (Qt.Key_Enter, Qt.Key_Return): return True - if e.key() in [Qt.Key_Tab, Qt.Key_Down, Qt.Key_Up]: + if e.key() == Qt.Key_Tab: return True return False