diff --git a/app/qml/form/editors/MMFormTextEditor.qml b/app/qml/form/editors/MMFormTextEditor.qml index 10ec5358e8..096d05943f 100644 --- a/app/qml/form/editors/MMFormTextEditor.qml +++ b/app/qml/form/editors/MMFormTextEditor.qml @@ -81,6 +81,18 @@ MMPrivateComponents.MMBaseSingleLineInput { } } + Connections { + target: textField + onActiveFocusChanged: { + if (textField.activeFocus) { + console.log("TextField has focus: " + root._fieldTitle) + } else { + textField.focus = false + console.log("TextField lost focus: " + root._fieldTitle) + } + } + } + QtObject { id: internal