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

Commit 3a71d36

Browse files
Fixing focus typo
1 parent 22931e2 commit 3a71d36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ public void Focus()
210210
{
211211
int directionY = Event.current.keyCode == KeyCode.UpArrow ? -1 : Event.current.keyCode == KeyCode.DownArrow ? 1 : 0;
212212
int directionX = Event.current.keyCode == KeyCode.LeftArrow ? -1 : Event.current.keyCode == KeyCode.RightArrow ? 1 : 0;
213+
213214
if (directionY != 0 || directionX != 0)
214215
{
215-
if (directionY < 0 || directionY < 0)
216+
if (directionY < 0 || directionX < 0)
216217
{
217218
SelectedNode = nodes[nodes.Count - 1];
218219
selectionChanged = true;

0 commit comments

Comments
 (0)