How practical is it to implement a virtual keyboard for an embedded (special purpose) touchscreen device in Elm (ideally elm-ui)? Often this keyboard is integrated into the browser or platform, but for some embedded devices, it would be nice to bypass all this and do it all in Elm. Then from the platform, all you need is a single browser running fullscreen which can eliminate a lot of platform complexity.
Some questions come to mind:
- showing/hiding the keyboard when clicking on an editable text field
- not sure how this would work with scrolling. When the keyboard is implemented by the device platform (say a phone), then the browser window resizes. If the keyboard is inside the browser window, not sure how this would work – could it be a popup below the current field?
- can the keys be injected into the browser, or would they need to be handled in Elm?
- accessibility – these products are not general purpose (like a phone), so likely won’t have built-in screen readers, etc, but there may be other issues.
Just getting started, so appreciate any thoughts – especially if there are reasons this is not a good idea.
Again, the motivation is that implementing/customizing this stuff at the platform level can be fairly painful, so if we are doing a ground-up Elm app, is that a better and more flexible option? I looked around in elm packages a little and did not see anything existing.