Skip to content

Commit

Permalink
Merge pull request #1142 from jvn4dev/fix/docs-useHotKeys
Browse files Browse the repository at this point in the history
fix: example code in use-hotkeys docs
  • Loading branch information
JohannesKlauss authored Feb 20, 2024
2 parents ed7df02 + d1f41b2 commit 0e40fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/api/use-hotkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ useHotkeys('ctrl+a, shift+b, r, f', (_, handler) => {
switch (handler.keys.join('')) {
case 'a': alert('You pressed ctrl+a!');
break;
case 'b': alert('You pressed ctrl+b!');
case 'b': alert('You pressed shift+b!');
break;
case 'r': alert('You pressed r!');
break;
Expand All @@ -85,7 +85,7 @@ useHotkeys(['ctrl+a', 'shift+b', 'r', 'f'], (_, handler) => {
switch (handler.keys.join('')) {
case 'a': alert('You pressed ctrl+a!');
break;
case 'b': alert('You pressed ctrl+b!');
case 'b': alert('You pressed shift+b!');
break;
case 'r': alert('You pressed r!');
break;
Expand Down

0 comments on commit 0e40fd3

Please sign in to comment.