From what I can tell, there is minimal support for the on-screen keyboard (particularly on mobile where it’s most relevant).
- Controlling text suggestions
- Finding out the height of the keyboard
- Having a listener for when the keyboard is shown and hidden
- and/or providing facilities to move the viewable region around as needed in order to focus the view on the text editor.
Platform specific classes:
Yes! That would be very helpful.
finding out the height of the keyboard, respectively a call to resized would be necessary to release a useful application
Yep. Without this feature you’re basically dead in the water for anything text input.
I am also missing this feature.
Sorry for bumping this but is it possible to add
getOnScreenKeyboardHeight() or something similar? Or maybe it is already added but I cannot find it?
Thanks for the suggestion. We’ve now added a ‘keyboard insets’ member to
juce::Displays::Display, which can be queried to find the area of the screen hidden by a virtual keyboard.
This should work on all supported iOS versions, but only on Android API level 30+ (Android 11).
We’ve also updated text input handling on iOS, so navigating with cursor keys (or with spacebar press-and-drag) should work as expected now.
I can’t find in the library