Make focus detection in pager more general using focusin/focusout on the container instead of on specific elements within hte container.