hides the submenu on focusout

When using the keyboard it's somewhat annoying that the language and advanced submenus stays visible even when focus is somewhere else. this prevents that.