forked from qt-creator/qt-creator
QmlDesigner: Fix unfocused TextField selection
Change-Id: Idd5438fa77d4aa783f71a6826b3e2234da326c34 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
6bf7ae11a0
commit
e6cc2eeba6
@@ -86,6 +86,9 @@ T.TextField {
|
|||||||
// was closed due to an menu item click.
|
// was closed due to an menu item click.
|
||||||
if (control.activeFocus && control.focusReason !== Qt.OtherFocusReason)
|
if (control.activeFocus && control.focusReason !== Qt.OtherFocusReason)
|
||||||
control.preFocusText = control.text
|
control.preFocusText = control.text
|
||||||
|
|
||||||
|
if (!control.activeFocus)
|
||||||
|
control.deselect()
|
||||||
}
|
}
|
||||||
|
|
||||||
onEditChanged: {
|
onEditChanged: {
|
||||||
|
Reference in New Issue
Block a user