mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix: don't handle keypress if field is readonly
This commit is contained in:
parent
e699ab6660
commit
7c3d8471e5
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ class PayToEdit(QTextEdit):
|
||||||
|
|
||||||
|
|
||||||
def keyPressEvent(self, e):
|
def keyPressEvent(self, e):
|
||||||
|
if self.isReadOnly():
|
||||||
|
return
|
||||||
|
|
||||||
if self.c.popup().isVisible():
|
if self.c.popup().isVisible():
|
||||||
if e.key() in [Qt.Key_Enter, Qt.Key_Return]:
|
if e.key() in [Qt.Key_Enter, Qt.Key_Return]:
|
||||||
e.ignore()
|
e.ignore()
|
||||||
|
|
Loading…
Add table
Reference in a new issue