Prevent focusing readOnly field/areas on click
This commit is contained in:
parent
74ffbdb0a8
commit
32484c3ae5
|
@ -64,6 +64,7 @@ TextArea {
|
||||||
text: defaultText || ""
|
text: defaultText || ""
|
||||||
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
activeFocusOnPress: ! readOnly
|
||||||
leftPadding: theme.spacing
|
leftPadding: theme.spacing
|
||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
topPadding: theme.spacing / 1.5
|
topPadding: theme.spacing / 1.5
|
||||||
|
|
|
@ -52,6 +52,7 @@ TextField {
|
||||||
text: defaultText || ""
|
text: defaultText || ""
|
||||||
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
opacity: enabled ? 1 : theme.disabledElementsOpacity
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
activeFocusOnPress: ! readOnly
|
||||||
leftPadding: theme.spacing
|
leftPadding: theme.spacing
|
||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
topPadding: theme.spacing / 1.5
|
topPadding: theme.spacing / 1.5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user