Updates context to track focus state