Skip to content

Commit 1b84568

Browse files
committed
fix typo
1 parent 59acce2 commit 1b84568

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Assets/Scripts/Core/DisplayObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ internal bool _AcceptTab()
956956
&& ((_flags & Flags.TabStop) != 0 || (_flags & Flags.TabStopChildren) != 0)
957957
&& (_flags & Flags.NotFocusable) == 0)
958958
{
959-
Stage.inst.SetFous(this, true);
959+
Stage.inst.SetFocus(this, true);
960960
return true;
961961
}
962962
else

Assets/Scripts/Core/Stage.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ public DisplayObject focus
269269
}
270270
set
271271
{
272-
SetFous(value);
272+
SetFocus(value);
273273
}
274274
}
275275

276-
public void SetFous(DisplayObject newFocus, bool byKey = false)
276+
public void SetFocus(DisplayObject newFocus, bool byKey = false)
277277
{
278278
if (newFocus == this)
279279
newFocus = null;
@@ -751,12 +751,12 @@ internal void InternalUpdate()
751751
if (_nextFocus.tabStopChildren)
752752
{
753753
if (_nextFocus._lastFocus != null && _nextFocus.IsAncestorOf(_nextFocus._lastFocus))
754-
SetFous(_nextFocus._lastFocus);
754+
SetFocus(_nextFocus._lastFocus);
755755
else
756-
SetFous(_nextFocus);
756+
SetFocus(_nextFocus);
757757
}
758758
else
759-
SetFous(_nextFocus);
759+
SetFocus(_nextFocus);
760760
}
761761
_nextFocus = null;
762762
}
@@ -995,7 +995,7 @@ void HandleTextInput()
995995
}
996996

997997
if (_keyboard.done)
998-
SetFous(null);
998+
SetFocus(null);
999999
}
10001000
}
10011001
else
@@ -1025,7 +1025,7 @@ void HandleCustomInput()
10251025
_touchCount = 1;
10261026
touch.Begin();
10271027
touch.button = 0;
1028-
SetFous(touch.target);
1028+
SetFocus(touch.target);
10291029

10301030
touch.UpdateEvent();
10311031
touch.target.BubbleEvent("onTouchBegin", touch.evt);
@@ -1067,7 +1067,7 @@ void HandleMouseEvents()
10671067
_touchCount = 1;
10681068
touch.Begin();
10691069
touch.button = Input.GetMouseButtonDown(2) ? 2 : (Input.GetMouseButtonDown(1) ? 1 : 0);
1070-
SetFous(touch.target);
1070+
SetFocus(touch.target);
10711071

10721072
touch.UpdateEvent();
10731073
touch.target.BubbleEvent("onTouchBegin", touch.evt);
@@ -1143,7 +1143,7 @@ void HandleTouchEvents()
11431143
_touchCount++;
11441144
touch.Begin();
11451145
touch.button = 0;
1146-
SetFous(touch.target);
1146+
SetFocus(touch.target);
11471147

11481148
touch.UpdateEvent();
11491149
touch.target.BubbleEvent("onTouchBegin", touch.evt);

Assets/Scripts/UI/GObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ public bool focused
10171017
public void RequestFocus()
10181018
{
10191019
if (displayObject != null)
1020-
Stage.inst.SetFous(displayObject, false);
1020+
Stage.inst.SetFocus(displayObject, false);
10211021
}
10221022

10231023
/// <summary>
@@ -1026,7 +1026,7 @@ public void RequestFocus()
10261026
public void RequestFocus(bool byKey)
10271027
{
10281028
if (displayObject != null)
1029-
Stage.inst.SetFous(displayObject, byKey);
1029+
Stage.inst.SetFocus(displayObject, byKey);
10301030
}
10311031

10321032
/// <summary>

0 commit comments

Comments
 (0)