Skip to content

Commit

Permalink
Update alternative-input-quickstart-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom authored Jan 21, 2022
1 parent 6a73aa4 commit 2ee5329
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 @@ -62,7 +62,7 @@ this.addChild( screenViewRootNode );
If you need to augment `this.pdomOrder` in a subclass, read about the pitfalls
in https://github.com/phetsims/scenery/issues/1308.

## Firing using the keyboard
## Fire using the keyboard

If you have a custom Node that needs to fire when the Space or Return keys are pressed, add `tagName: 'button'` to your Node's options, then use one of these approaches:

Expand All @@ -76,7 +76,7 @@ this.addInputListener( {
} );
```

## Dragging using the keyboard
## Drag using the keyboard

`DragListener` does NOT handle keyboard input. For Nodes where you’ve added a `DragListener`, you’ll need to add a
corresponding `KeyboardDragListener`. The options for your `DragListener` and `KeyboardDragListener` will typically be similar, but beware that API differences exist. Avoid duplicating code - factor out any logic that is
Expand Down

0 comments on commit 2ee5329

Please sign in to comment.