Check if the source is an icon before focusing it