removing mousearea, fixing continue button

This commit is contained in:
Wayne Chen 2018-11-30 13:02:29 -08:00
parent 5e82bc78b7
commit c8783776fe

View file

@ -21,7 +21,6 @@ Item {
z: -2 z: -2
id: linkAccountBody id: linkAccountBody
clip: true clip: true
focus: true
height: root.height height: root.height
width: root.width width: root.width
property int textFieldHeight: 31 property int textFieldHeight: 31
@ -158,6 +157,7 @@ Item {
topMargin: loginErrorMessage.height topMargin: loginErrorMessage.height
} }
placeholderText: "Username or Email" placeholderText: "Username or Email"
focus: true
activeFocusOnPress: true activeFocusOnPress: true
Keys.onPressed: { Keys.onPressed: {
switch (event.key) { switch (event.key) {
@ -326,7 +326,7 @@ Item {
height: d.minHeightButton height: d.minHeightButton
color: hifi.buttons.none; color: hifi.buttons.none;
anchors { anchors {
top: cantAccessContainer.bottom top: cantAccessText.bottom
topMargin: hifi.dimensions.contentSpacing.y topMargin: hifi.dimensions.contentSpacing.y
left: emailField.left left: emailField.left
} }
@ -444,16 +444,6 @@ Item {
} }
} }
} }
MouseArea {
anchors.fill: parent
onClicked: {
print("clicked");
if (!emailField.focus && !passwordField.focus) {
print("forcing active focus");
emailField.forceActiveFocus();
}
}
}
Component.onCompleted: { Component.onCompleted: {
//but rise Tablet's one instead for Tablet interface //but rise Tablet's one instead for Tablet interface
@ -462,7 +452,6 @@ Item {
root.text = ""; root.text = "";
d.resize(); d.resize();
init(); init();
emailField.forceActiveFocus();
} }
Keys.onPressed: { Keys.onPressed: {