mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-15 21:29:23 +00:00
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
515 B
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
booleantrueif KMW is targetting touch-sensitivity for the device, otherwisefalse.
Note
In current versions of KeymanWeb this function will return
falsefor touchscreen laptops; current touch support is specialized for mobile phones and tablets.