From ea6e651b2ae434df165bac5da3bf1877030445ad Mon Sep 17 00:00:00 2001 From: Anastasiya S Date: Wed, 3 Nov 2021 19:14:37 +0300 Subject: [PATCH] chore(@desktop/general): disable enter and return keys for search pop up --- src/StatusQ/Popups/StatusSearchPopup.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 + } } }