Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Jul 24, 2024
1 parent dcf98d7 commit 34c4cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/keypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const event: KeyPressEvent = await keypress();
console.log("Key pressed: %s", event.key);

/** AsyncIterator */
for await (const event: KeyPressEvent of keypress()) {
for await (const event of keypress()) {
console.log("Key pressed: %s", event.key);
if (event.ctrlKey && event.key === "c") {
console.log("exit");
Expand Down

0 comments on commit 34c4cd2

Please sign in to comment.