Previously, the event handler was attached to body, but in the event of
the keyboard failing to render, the body element will typically be zero
pixels high. Instead, attach the handler to the document itself.
KeymanWeb, when running normally, will handle all touches on the
keyboard elements which take 100% of the real estate. So the document
tap will only be received in the case of an error condition.
Also, add a console error that will be reported to Sentry when user has
error reporting switched on.
Test-bot: skip
Keyman makes it possible for you to type in any language
on Windows, macOS, Linux, iPhone, iPad, Android tablets and phones, and even
instantly in your web browser. Create keyboard layouts with Keyman Developer and
share them with the community in the keyboards
repository. The Keyman
Community have so far contributed
well over 1,000 keyboard layouts for over 2,500 languages!
License
Copyright (c) SIL Global.
Keyman is an open source project distributed under the MIT license.