diff --git a/src/StatusQ/Popups/StatusSearchPopup.qml b/src/StatusQ/Popups/StatusSearchPopup.qml index 4f98943d..52d7ceae 100644 --- a/src/StatusQ/Popups/StatusSearchPopup.qml +++ b/src/StatusQ/Popups/StatusSearchPopup.qml @@ -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 + } } }