spiegel-keyman/web/docs/engine/reference/util/isTouchDevice.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
Deprecate the following obsolete functions and properties:
* `keyman.helpURL`
* `keyman.util.rgba`
* `keyman.util.toFloat`
* `keyman.util.toNumber`
* `keyman.util.toNzString`

Use correct language for code blocks in Keyman Engine for Web
documentation.

Test-bot: skip
2026-08-12 16:07:22 +02:00

515 B

title
isTouchDevice

Summary

Allow external callers (such as UIs) to detect if the active device is considered touch sensitive by KeymanWeb.

Syntax

keyman.util.isTouchDevice();

Parameters

None.

Return Value

boolean
true if KMW is targetting touch-sensitivity for the device, otherwise false.

Note

In current versions of KeymanWeb this function will return false for touchscreen laptops; current touch support is specialized for mobile phones and tablets.