Close context menu after clicking action.

Fixes #332
Merge pull request #336 from M2Ys4U/userbox

Close context menu after clicking action.