popup: closes when user clicks button or some inputs via spacebar (close #1134)

close #1134
// cc @narqo @dfilatov 
Use either `_preventHideByClick` or `_needToPreventHideByClick`. I like first one.