commit e361a8549c1d9686727f0e6f4994843084104023
parent aac9826e1b2a155a1c380f37b93fa6b505232818
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:
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
@@ -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