Skip to content

Commit

Permalink
addHotkey was removed from KeyboardDragListener, see phetsims/scenery…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 26, 2024
1 parent a8b8274 commit 7132a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/implementation-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ To identify sim-specific support for keyboard input, search for `tagName`. These
(typically `KeyboardDragListener`) that handle keyboard events.

This sim currently does not make use of hotkeys (aka, shortcuts). But if it does in the future...
To identify hotkeys, search for `addHotkey`.
To identify hotkeys, search for `new KeyboardListener`.

When a draggable object has focus, it is immediately draggable. This sim does not use `GrabDragInteraction`, which
requires a Node that has focus to be "grabbed" before it can be dragged. PhET typically does not use `GrabDragInteraction`
Expand Down

0 comments on commit 7132a31

Please sign in to comment.