Closed KatieWoe closed 3 years ago
That's also true of the first (Discrete) screen.
@arouinfar please specify what (if anything) you'd like done here. If you want keyboard help, please provide a mockup of what that should look like for each screen.
For the Discrete and Wave Packet screens, add a "Measurement Tools" section directly below the "Slider Controls" section. The "Measurement Tools" title only appears on the Discrete screen, but I think it is appropriate for both screens. If you disagree, @pixelzoom , we can instead use "Component Spacing Tools" as the title on the Wave Packet Screen.
We can model these sections after the "Move Book" section of Friction.
They keys will be exactly the same, but the text should read:
Measurement Tools Move tool [arrows] or [WASD] Move slower [Shift] + [arrows] or [Shift] + [WASD]
@jessegreenberg @zepumph Presumably what @arouinfar has specified in the comment above is the same (or similar, except for labeling) for anything that has a KeyboardDragListener
.
For implementing:
Move tool [arrows] or [WASD]
... I see KeyboardHelpSelection.getGrabReleaseHelpSection
, but I cannot use it because it has language specific to "grab".
For implementing:
Move slower [Shift] + [arrows] or [Shift] + [WASD]
... it looks like Friction rolls its own help control in MoveBookHelpSection
. So I'm guessing there's no support in KeyboardHelpSelection
.
How do you you recommend that I proceed? Do you want to provide reusable support for describing KeyboardDragListener keys? Or should I continue with the "roll your own" pattern?
On second thought... I'll start by cobbling together my own MeasurementToolsKeyboardHelpSection
, and then have someone from the a11y team review it.
The language (left column with English) tends to be sim specific enough that most of our factored out code has been in KeyboardHelpIconFactory with creating the right column Node with icons. I would recommend cobbling! Happy to review after the initial pass.
Done in the above commit. Screenshots below is the same for Discrete and Wave Packet screens.
One deviations from @arouinfar's specification: the "Measurement Tools" section is ABOVE the "Slider Controls" section, because @terracoda said in a recent discussion that more sim-specific things come before more general things.
@arouinfar please review in master.
One deviations from @arouinfar's specification: the "Measurement Tools" section is ABOVE the "Slider Controls" section, because @terracoda said in a recent discussion that more sim-specific things come before more general things.
Good call! Looks good in master.
Not sure if the implementation needs further review, so back to @pixelzoom.
I'm confident that the implementation is solid. I reused everything that I could from KeyboardHelpIconFactory
and KeyboardHelpSection
. So I'll close this issue.
@KatieWoe thanks for reporting. This is a nice improvement.
Test device Dell Operating System Win 10 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/701. The keyboard nav dialog on the third screen does not discus dragging objects around. This means there are no instructions for the k1 and lambda 1 measuring tools. They are not complicated to figure out, but we may want to add instructions anyway.
Visuals
Troubleshooting information: