Skip to content

Commit

Permalink
Merge pull request #977 from Ultimaker/CURA-9314_allow-triple-click-i…
Browse files Browse the repository at this point in the history
…n-text-inputs

Allow keep focus after triple-click selection
  • Loading branch information
HellAholic authored Nov 1, 2024
2 parents 6f80d59 + 1ec052a commit 1fdeab0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UM/Qt/qml/UM/TextField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fdeab0

Please sign in to comment.