Browse Source

qt paytoedit: enable up/down keys

useful if multiline, and no harm(?) otherwise
regtest_lnd
SomberNight 6 years ago
parent
commit
e361a8549c
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/completion_text_edit.py

6
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

Loading…
Cancel
Save