Skip to content

Commit

Permalink
Hotkey management prototype, renamed KeyboardDragListener hotkeys set…
Browse files Browse the repository at this point in the history
…ter => setHotkeys(), see phetsims/scenery#1621
  • Loading branch information
jonathanolson committed Mar 28, 2024
1 parent 9a96b60 commit ff05993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/alternative-input-quickstart-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ If your Node has a `KeyboardDragListener`, add hotkeys like this:

```ts
const keyboardDragListener = new KeyboardDragListener( /* ... */ );
keyboardDragListener.hotkeys = [
keyboardDragListener.setHotkeys( [
// Escape
{
keys: [ KeyboardUtils.KEY_ESCAPE ],
Expand All @@ -238,7 +238,7 @@ keyboardDragListener.hotkeys = [
keys: [ KeyboardUtils.KEY_J, KeyboardUtils.KEY_O ],
callback: () => { /* ... */ }
}
];
] );
```

If your Node does not have a `KeyboardDragListener`, add hotkeys with `KeyboardListener` like this:
Expand Down

0 comments on commit ff05993

Please sign in to comment.