Skip to content

Commit c3ead4f

Browse files
sissbrueckerWestbrook
authored andcommitted
Add changeset
1 parent c85151a commit c3ead4f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@web/test-runner-commands': minor
3+
---
4+
5+
Added support for holding and releasing keys to the sendKeys command. The command now supports two additional actions `down` and `up` which hold down, or release a key. This effectively allows to hold down modifier keys while pressing other keys, which allows key combinations such as `Shift+Tab`.
6+
7+
@example
8+
```ts
9+
await sendKeys({
10+
down: 'Shift',
11+
});
12+
await sendKeys({
13+
press: 'Tab',
14+
});
15+
await sendKeys({
16+
up: 'Shift',
17+
});
18+
```

0 commit comments

Comments
 (0)