From 77f051ce591804c3de6ef00cead45f0f12d7a820 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Tue, 28 Feb 2023 11:17:08 -0500
Subject: [PATCH] modaltextedit: accept state as soon as focus changes

So that pressing tab will emit onAccepted and the dynamic text
always show the correct value saved.

Change-Id: I64326f1f836d611776bcfaf7993e6254e5d5aefe
---
 src/app/commoncomponents/ModalTextEdit.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/commoncomponents/ModalTextEdit.qml b/src/app/commoncomponents/ModalTextEdit.qml
index d584fa18e..3fcced54d 100644
--- a/src/app/commoncomponents/ModalTextEdit.qml
+++ b/src/app/commoncomponents/ModalTextEdit.qml
@@ -99,6 +99,7 @@ Loader {
             onFocusChanged: {
                 if (!focus) {
                     root.editMode = false
+                    root.accepted()
                 }
                 activeChanged(root.editMode)
             }
-- 
GitLab