Browse Source

fix: don't handle keypress if field is readonly

283
ThomasV 11 years ago
parent
commit
7c3d8471e5
  1. 3
      gui/qt/paytoedit.py

3
gui/qt/paytoedit.py

@ -175,6 +175,9 @@ class PayToEdit(QTextEdit):
def keyPressEvent(self, e):
if self.isReadOnly():
return
if self.c.popup().isVisible():
if e.key() in [Qt.Key_Enter, Qt.Key_Return]:
e.ignore()

Loading…
Cancel
Save