You disable mousedown event in showIMESwitcher,
so you shall enable them by removeEventListener('mousedown') in opposite position: here.