react-spring-lightbox icon indicating copy to clipboard operation
react-spring-lightbox copied to clipboard

Keyboard keys hardcoded and captured all the time

Open uiii opened this issue 2 years ago • 0 comments

Hi, thank for the library, works very well.

I have one issue though. I render custom footer from which I can open a modal with form inputs, the problem is, that even if I am focused in the input and press arrow keys, the slides move as well also some other keys like Home or End doesn't work because the lightbox capture all.

Not sure how to solve this, I see the keyboard keys are hardcoded in the lightbox.

Solution might be to capture keys only if the lightbox is focused, but not sure if there could be any issues. Also might be very handy have the keys configurable and also possible to disable completely.

uiii avatar Nov 25 '23 09:11 uiii