How to focus alerts inputs and submit on keyboard enter. (Ionic v4)

In Ionic 3 the alert inputs works a bit different. Since Ionic 4 the input is not focused anymore and not submitted on keyboard enter. How to do this in Ionic 4?
It’s a bit annoying for the user to focus the input and hide the keyboard before he can submit the value. Because the ok-button is hidden / behind the keyboard overlay.

Did you ever figure out how to do this? I’m in the midst of a v3->v4 upgrade, and have hit the same issue.