The spec describes a "layoutchange" event that can be added to the navigator.keyboard.
I have not found a browser that implements it.
But this should safely attach to the event if it exists and call the given callback if it does.
It will return true if it managed to attach.
The spec describes a "layoutchange" event that can be added to the navigator.keyboard.
I have not found a browser that implements it.
But this should safely attach to the event if it exists and call the given callback if it does.
It will return true if it managed to attach.