From e361a8549c1d9686727f0e6f4994843084104023 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 4 May 2019 04:42:39 +0200 Subject: [PATCH] qt paytoedit: enable up/down keys useful if multiline, and no harm(?) otherwise --- electrum/gui/qt/completion_text_edit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qt/completion_text_edit.py b/electrum/gui/qt/completion_text_edit.py index 4a8f908b5..05830b9a1 100644 --- a/electrum/gui/qt/completion_text_edit.py +++ b/electrum/gui/qt/completion_text_edit.py @@ -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