chore(@desktop/general): disable enter and return keys for search pop up

This commit is contained in:
Anastasiya S 2021-11-03 19:14:37 +03:00
parent 0a08bb80c0
commit ea6e651b2a
1 changed files with 4 additions and 6 deletions

View File

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