resignMainWindow → resignKeyWindow
make sure the target picker is updated before showing it