Skip to content

Commit a1e325b

Browse files
committed
add keymap call to keypress case
1 parent 6af5ac7 commit a1e325b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/handlers/agentHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ export class StagehandAgentHandler {
264264
const { keys } = action;
265265
if (Array.isArray(keys)) {
266266
for (const key of keys) {
267-
await this.page.keyboard.press(key);
267+
const mappedKey = mapKeyToPlaywright(key);
268+
await this.page.keyboard.press(mappedKey);
268269
}
269270
}
270271
return { success: true };

0 commit comments

Comments
 (0)