Hello,
frankly, at the moment I can not implement all the functionality of the gallery through the control of a “single key”.
But fortunately you have a choice and you can get rid of this snag – just by changing the plugin. 🙂
🙂 No worries. It was worth a shot.
Before I go though:
Your lightbox is already working with keyboard navigation and closes on escape.
You just can’t open the lightbox with the Enter key because you can’t tab to it (tabindex=0, and an event to run the lightbox would fix it).
I would genuinely suggest this is something to look into. WCAG 2.1AA compliance is now really important for a lot of countries.
e.g I work for a large UK Uni and I can’t use your plugin at all because we legally have to be compliant. The fines are huge if we’re not.
As you noticed, there is still a little bit left and everything will be great. I left myself a note about this. But there is a risk that the WCAG 2.1AB standard will be released tomorrow and everything will need to start from the beginning 🙁
But your remark is absolutely correct and will be taken into account.
I wouldn’t worry about that.
2.1 AA is what most equality laws are based on.
You can always aim to be even MORE accessible (and aim for 2.1 AAA or 2.2) … but the minimum is 2.1 AA
😀
If you want any advice on where to find info on WCAG, I’d be happy to help 🙂
Making the web accessible to everyone benefits all of us.
(From a plugin developer point of view – it’s a great selling feature. Most countries have a law that says websites should be accessible, it can cost companies a lot of money if they’re sued over it).
Thank you for offering to help me. But at the moment I’m busy with other functionality. And just for general information – my gallery in AMP mode (without JS) will meet the minimum requirements for WCAG. I think so 🙂
Hello,
If you are still interested, you can try the new version 2.3.5. I have made some improvements to the keyboard controls.