I think it handles those cases but I haven’t tested to make sure. If not, I would use a JavaScript library. I haven’t tried it but Keypress looks good: https://dmauro.github.io/Keypress/
I think it handles those cases but I haven’t tested to make sure. If not, I would use a JavaScript library. I haven’t tried it but Keypress looks good: https://dmauro.github.io/Keypress/