Hahah, you’d think so, right? But no. Actually, Chrome sort of has something like this now but of course, Apple, the company that pioneered this whole touchscreen web tradition, never sat down to actually think deeply about any of it, nor will they listen to developers who run into issues. So there’s only a kludge: comparing the size of the visual viewport to document.documentElement.clientHeight, and hoping that when it’s unexpectedly small, that means the keyboard is open.