mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-21 07:47:40 +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
25 lines
515 B
Markdown
25 lines
515 B
Markdown
---
|
|
title: isTouchDevice
|
|
---
|
|
|
|
## Summary
|
|
|
|
Allow external callers (such as UIs) to detect if the active device is considered touch sensitive by KeymanWeb.
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
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.
|