fix: don't handle keypress if field is readonly
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user