Skip to content

Commit

Permalink
documentation improvements for #1570
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 26, 2024
1 parent 390c8df commit 1935e44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/listeners/KeyboardListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* - Each entry in the array represents a combination of keys that must be pressed to fire a callback.
* - '+' separates each key in a single combination.
* - The keys leading up to the last key in the group are considered "modifier" keys. The last key in the group needs
* to be pressed while the modifier keys are down.
* - The keys leading up to the last key in the combination are considered "modifier" keys. The last key in the
* combination needs to be pressed while the modifier keys are down to fire the callback.
* - The order modifier keys are pressed does not matter for firing the callback.
*
* In the above example "shift+t" OR "alt+shift+r" will fire the callback when pressed.
Expand Down Expand Up @@ -36,7 +36,7 @@
* } ) );
*
* By default, the fire callback will fire when the last key is pressed down. See additional options for firing on key
* up or other press and hold behavior.
* release or other press and hold behavior.
*
* **Important Modifier Key Behavior**
* Modifier keys prevent other key combinations from firing their behavior if they are pressed down.
Expand Down

0 comments on commit 1935e44

Please sign in to comment.