Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard keys hardcoded and captured all the time #65

Open
uiii opened this issue Nov 25, 2023 · 0 comments
Open

Keyboard keys hardcoded and captured all the time #65

uiii opened this issue Nov 25, 2023 · 0 comments

Comments

@uiii
Copy link

uiii commented Nov 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant