键盘bug,细节调整

This commit is contained in:
Caiyanpeng committed 2021-04-25 19:35:41 +08:00
1 parent 048538a0c8
commit 8de7e94c8d
12 files changed
+1058 -465

No files matched your search

+2 -2
View File
@@ -1009,9 +1009,9 @@ public class LoginController : MonoBehaviour
{
loginForm.password.ActivateInputField();
}
if (Input.GetKey(KeyCode.KeypadEnter) || Input.GetKey(KeyCode.Return))
if (Input.GetKeyDown(KeyCode.KeypadEnter) || Input.GetKeyDown(KeyCode.Return))
{
if (loginForm != null && !string.IsNullOrEmpty(loginForm.email.text) && !string.IsNullOrEmpty(loginForm.password.text))
if (loginForm != null && !string.IsNullOrEmpty(loginForm.email.text) && !string.IsNullOrEmpty(loginForm.password.text))
{
Submit();
}