# Shift-enter in mobile phones

**URL:** <https://discuss.prosemirror.net/t/shift-enter-in-mobile-phones/4903>\
**Category:** Uncategorized\
**Created:** [September 12, 2022, 5:23am UTC](https://discuss.prosemirror.net/t/shift-enter-in-mobile-phones/4903 "2022-09-12T05:23:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [June 22, 2026, 3:37pm UTC](https://discuss.prosemirror.net/t/shift-enter-in-mobile-phones/4903/6 "2026-06-22T15:37:35Z")

</div>

> [@michael](#):
>
> @marijn how do you make that check? Is there a reliable native API for this

Hahah, you’d think so, right? But no. Actually, Chrome [sort of](https://developer.mozilla.org/en-US/docs/Web/API/VirtualKeyboard) 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](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport) to `document.documentElement.clientHeight`, and hoping that when it’s unexpectedly small, that means the keyboard is open.

---

_[View the full topic](https://discuss.prosemirror.net/t/shift-enter-in-mobile-phones/4903)._
