Appearance
Function: hasKeyboardDown()
ts
function hasKeyboardDown(ctx: Context): boolean;Defined in: src/utils/pageAccess.ts:18
Check if the context page has keyboard support.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Context | The context object. |
Returns
boolean
true if keyboard actions are available.
Example
ts
if (hasKeyboardDown(ctx)) {
await ctx.page.keyboard.down('Shift');
}