diff --git a/src/declarativeimports/plasmacomponents/qml/TextField.qml b/src/declarativeimports/plasmacomponents/qml/TextField.qml --- a/src/declarativeimports/plasmacomponents/qml/TextField.qml +++ b/src/declarativeimports/plasmacomponents/qml/TextField.qml @@ -92,7 +92,7 @@ PlasmaCore.IconItem { id: showPasswordButton - source: __effectiveRevealPasswordButtonShown ? (textField.echoMode === TextInput.Normal ? "hint" : "visibility") : "" + source: __effectiveRevealPasswordButtonShown ? (textField.echoMode === TextInput.Normal ? "visibility": "hint") : "" height: Math.max(textField.height * 0.8, units.iconSizes.small) width: height opacity: (__effectiveRevealPasswordButtonShown && textField.enabled) ? 1 : 0 @@ -105,7 +105,7 @@ } MouseArea { anchors.fill: parent - onClicked: { + onPressedChanged: { textField.echoMode = (textField.echoMode == TextInput.Normal ? TextInput.Password : TextInput.Normal) textField.forceActiveFocus() }