Skip to content

Function: hasKeyboardDown()

ts
function hasKeyboardDown(ctx: Context): boolean;

Defined in: src/utils/pageAccess.ts:18

Check if the context page has keyboard support.

Parameters

ParameterTypeDescription
ctxContextThe context object.

Returns

boolean

true if keyboard actions are available.

Example

ts
if (hasKeyboardDown(ctx)) {
  await ctx.page.keyboard.down('Shift');
}

Matterway Assistant SDK Documentation