From 7132a31065056d28ce6bb1e8cff2216ecf491c23 Mon Sep 17 00:00:00 2001 From: Jesse Date: Fri, 26 Apr 2024 12:21:10 -0400 Subject: [PATCH] addHotkey was removed from KeyboardDragListener, see https://github.com/phetsims/scenery/issues/1570 --- doc/implementation-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/implementation-notes.md b/doc/implementation-notes.md index 32a0d19f..6dc07960 100644 --- a/doc/implementation-notes.md +++ b/doc/implementation-notes.md @@ -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`