Skip to content

Commit

Permalink
clearing focus of text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jun 11, 2024
1 parent c1b96cd commit 4bbd3a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/qml/form/editors/MMFormTextEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4bbd3a1

Please sign in to comment.