Fix for keyboard navigation of fullscreen galleries