popup: split own functionality into target modifiers (close #968)

Yes, I would. It's often case in applications I'm developing.