@@ -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 ) ;
0 commit comments