[squeak-dev] SqueakJS keyboard input (was: Wrote a little about OnScreenKeyboardMorph)
Vanessa Freudenberg
vanessa at codefrau.net
Fri Apr 23 01:11:52 UTC 2021
On Thu, Apr 22, 2021 at 1:13 PM Craig Latta <craig at blackpagedigital.com>
wrote:
>
> I wrote:
>
> > ...on the iPad, there's Scribble. I wrote SqueakJS support for it. I
> > hide an invisible HTML text input element underneath wherever you're
> > entering text, and Scribble recognizes it. It does both ink-based
> > recognition and the sliding-around-on-an-onscreen-keyboard thing,
> > which I really like.
> >
> > https://vimeo.com/494744698 <https://vimeo.com/494744698>
>
> Vanessa responds:
>
> > Oh cool! Does it need image-side support? If not I'd love to get this
> > into SqueakJS proper - I think having a hidden text field might solve
> > the various issues we have on e.g. Android, or with copy/paste on
> > Safari.
>
> Yeah! This use case involves a tiny bit of image-side support, so
> that the hidden recognizer is moved properly whenever a Smalltalk window
> is activated. I'll submit a pull request for the rest of it.
>
Does it use the setCompositionWindow mechanism? I always thought we should
change ImmAbstractPlatform to call a
generic primSetCompositionWindowPosition in ImmPlugin, which doesn't exist
right now, but would allow platforms to hook into that mechanism without
image changes.
Then again, a focus / blur primitive would be good too so we can show/hide
the soft keyboard automatically. It should get the bounds of the text area,
and possibly the cursor position, too. With that information the VM could
automatically zoom to a text field on phones ... So maybe a new
SoftKeyboardPlugin?
Vanessa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210422/3421efac/attachment.html>
More information about the Squeak-dev
mailing list
|