Imported piece of code from mapentity
Close list filter when click outside (fixes #916)
Missing translation header preventing gettext to work