Make ASDisplayNode unable to be focused by default. ASControlNode will be the new default.

This commit is contained in:
Aaron Schubert
2016-02-23 10:36:53 +00:00
parent 99e578a56f
commit 682903fba5
2 changed files with 3 additions and 3 deletions

View File

@@ -2602,7 +2602,7 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority";
- (BOOL)shouldUpdateFocusInContext:(UIFocusUpdateContext *)context
{
return YES;
return NO;
}
- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator

View File

@@ -104,7 +104,7 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { ASDisplayNo
// Focus Engine
- (BOOL)canBecomeFocused
{
return YES;
return NO;
}
- (void)setNeedsFocusUpdate
@@ -121,7 +121,7 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { ASDisplayNo
- (BOOL)shouldUpdateFocusInContext:(UIFocusUpdateContext *)context
{
return YES;
return NO;
}
- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator