Bluesky app fork with some witchin' additions 💫

[Lightbox] prevent browser-default escape key behavior (#8859)

Some browsers exit fullscreen when the escape key is pressed without `preventDefault()` being called; we don't want that when we're handling the press ourselves.

authored by

Ridley Combs and committed by
GitHub
49237869 48baf727

+1
+1
src/view/com/lightbox/Lightbox.web.tsx
··· 76 76 const onKeyDown = useCallback( 77 77 (e: KeyboardEvent) => { 78 78 if (e.key === 'Escape') { 79 + e.preventDefault() 79 80 onClose() 80 81 } else if (e.key === 'ArrowLeft') { 81 82 onPressLeft()