From ef1f6edf31c7e74ff8be4966fd8adc69fb7af401 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 28 Feb 2021 17:28:39 -0400 Subject: [PATCH] PushRuleSettingsPopup: handle enter to save --- docs/TODO.md | 1 - src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/TODO.md b/docs/TODO.md index 3ef0950a..5105f438 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -1,6 +1,5 @@ # TODO -- enter in field - sfx selection - custom action diff --git a/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml b/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml index dc5800bd..ad68b759 100644 --- a/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml +++ b/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml @@ -78,6 +78,7 @@ HFlickableColumnPopup { page.footer: AutoDirectionLayout { ApplyButton { + id: applyButton text: qsTr("Save changes") enabled: swipeView.currentItem.idField.text.trim() !== "" loading: saveFutureId !== "" @@ -98,6 +99,8 @@ HFlickableColumnPopup { } } + onKeyboardAccept: applyButton.clicked() + CustomLabel { visible: root.rule.default text: qsTr("Some settings cannot be changed for default server rules")