chore(@desktop/general): disable enter and return keys for search pop up
This commit is contained in:
parent
0a08bb80c0
commit
ea6e651b2a
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue