checking to make sure the focus panel is within the view widget