Skip to content

Commit

Permalink
Allow keep focus after triple-click selection
Browse files Browse the repository at this point in the history
CURA-9314
  • Loading branch information
wawanbreton committed Oct 31, 2024
1 parent 6f80d59 commit 1ec052a
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 1ec052a

Please sign in to comment.