Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 33bf32e

Browse files
authored
Merge pull request #9 from github-for-unity/fixes/authentication-view-clear-focus
Clear focus after clicking a button in the AuthenticationView
2 parents 83e5677 + e3e64f1 commit 33bf32e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/AuthenticationView.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ private void OnGUILogin()
144144
GUILayout.FlexibleSpace();
145145
if (GUILayout.Button(loginButton))
146146
{
147+
GUI.FocusControl(null);
147148
busy = true;
148149
AuthenticationService.Login(username, password, DoRequire2fa, DoResult);
149150
}
@@ -177,6 +178,7 @@ private void OnGUI2FA()
177178
GUILayout.FlexibleSpace();
178179
if (GUILayout.Button(backButton))
179180
{
181+
GUI.FocusControl(null);
180182
need2fa = false;
181183
Redraw();
182184
}
@@ -185,6 +187,7 @@ private void OnGUI2FA()
185187

186188
if (GUILayout.Button(twofaButton))
187189
{
190+
GUI.FocusControl(null);
188191
busy = true;
189192
AuthenticationService.LoginWith2fa(two2fa);
190193
}

0 commit comments

Comments
 (0)