From 1ec052a193175ba403e752e09fe426ce5080e3f4 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 31 Oct 2024 16:06:54 +0100 Subject: [PATCH] Allow keep focus after triple-click selection CURA-9314 --- UM/Qt/qml/UM/TextField.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UM/Qt/qml/UM/TextField.qml b/UM/Qt/qml/UM/TextField.qml index 786893429..a8bd64df6 100644 --- a/UM/Qt/qml/UM/TextField.qml +++ b/UM/Qt/qml/UM/TextField.qml @@ -30,6 +30,9 @@ TextField placeholderTextColor: UM.Theme.getColor("text_field_text_disabled") selectionColor: UM.Theme.getColor("text_selection") + // Force getting focus on press to fix selection by triple-click + onPressed: forceActiveFocus() + background: UM.UnderlineBackground { id: background