fix(StatusSearchPopup): disable enter and return keys to avoid UI breakage

This commit is contained in:
Anastasiya S 2021-11-03 19:47:38 +03:00 committed by Pascal Precht
parent 31cfc8833a
commit fecfb2a7e9
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 10 additions and 6 deletions

View File

@ -93,6 +93,10 @@ StatusModal {
font.pixelSize: 28 font.pixelSize: 28
font.family: Theme.palette.baseFont.name font.family: Theme.palette.baseFont.name
color: Theme.palette.directColor1 color: Theme.palette.directColor1
Keys.onPressed: {
if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return)
event.accepted = true
}
} }
} }
StatusMenuSeparator { StatusMenuSeparator {