-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should keyboard dialog include play/pause command? #194
Comments
Thanks @KatieWoe. This seems like an oversight to me. I think Molecules and Light is the only sim that currently uses these hotkeys. Here's the relevant snippet from its keyboard help dialog. In MAL, the TimeControlNode is described within the context of the Observation Window. Given that the TimeControlNode can have huge impact on the description of the Observation Window, this makes sense. However, we are adding support for alternative input to many sims, so I think we should consider adding optional content to the Basic Actions section. The help content for StepForwardButton is already very general, but we should change the help content for PlayPauseButton to something like:
For Greenhouse Effect, I would include the PlayPauseButton help content under the Basic Actions. @jessegreenberg @jbphet let me know your thoughts. If you think it's worth generalizing the PlayPauseButton and StepForwardButton help content, we can move this discussion to scenery-phet (or the appropriate common repo). |
Actually, I just realized Alt+L is used to increase the standard size of the StepForwardButton. I don't know if that will become standard practice, so we might decide to skip generalizing that part to Basic Actions. |
I think hotkeys are typically only going to be used by superusers and are too complicated for the "Basic Actions" section. My preference would be to add a new section for this. |
Discussed today - Ill make a new section with default content for the "timing controls". For this sim, Ill place it under the "slider" section. |
We discussed this in the 7/27/2022 design meeting and concluded that interviews can go ahead without this functionality. @arouinfar said she would let participants know verbally if they appear to be searching for this functionality. |
OK, an initial commit for this has been made. Strings are not translatable yet until they have been reviewed. @arouinfar would you mind taking a look and verifying the default content looks OK? Any layout changes or anything else? A "Timing Controls" section can be found on every screen (except micro and home). |
The design team reviewed this in today's meeting, and @arouinfar approved, so we should move ahead with making this string translatable and then we're done. |
Addressed above. |
OK, all done here. TypeScript is cleaned up and the strings are now translatable. Closing. |
Reopening. What are "timing controls"? If this is at all related to TimeControlNode, then... (1) The terminology here is very confusing. We typically refer to "time controls", not "timing controls". Has this been cleared with designers? Is is OK to use "timing control" in the UI and "time control" in PhET-iO tandems? Also, the doc for TimingControlsKeyboardHelpSection is currently:
It would be helpful to be specific about what "timing controls" is. |
It also seems like effort would be better spent on addressing phetsims/scenery-phet#682 (Hotkey support for TimeControlNode). In Fourier phetsims/fourier-making-waves#92, we decided not to enable TimeControlNode hotkeys because they did not support all of the functionality that's exposed in that sim -- there is no hotkey for Step. Two screens in Greenhouse also have a Step button. Why are we adding hotkeys and keyboard-help content to Greenhouse when it has the exact same problem as Fourier? |
It will be a week or so until I can return to this issue so I removed the strings from scenery-phet-strings_en.json until we know they are solid. |
So it sounds like "Timing" is related to TimeControlNode. If "Timing" is the indeed the new terminology, then there are many things that need to change, in all sims. And it changes the PhET-iO API of all sims.
- class CollisionLabTimeControlNode extends TimeControlNode {
+ class CollisionLabTimingControlsNode extends TimingControlsNode {
- const timeControlNode = new LayersModelTimeControlNode( model, {
- tandem: tandem.createTandem( 'timeControlNode' )
+ const timingControlsNode = new LayersModelTimingControlsNode( model, {
+ tandem: tandem.createTandem( 'timingControlslNode' ) If "Timing" is not essential, and we can continue to use "Time", then the changes are much easier:
I guess we should techncally change TimeControlNode to TimeControlsNode (plural), but that might be something we could skip. |
I'd also be interested in hearing from @arouinfar on this issue, since she commented in #194 (comment). Fourier and Greenhouse both have identical uses of TimeControlNode, and identical problems -- no hotkey for the Step button. Why did we decide to disable TimeControlNode hotkeys in Fourier, but enable them in Greenhouse? Is it because Greenhouse includes description? (Btw... There's no responsible designer listed for this sim.) EDIT: Note that hotkeys for TimeControlNode are also currently disabled in MOTHA, for the same reason as Fourier. |
The Greenhouse Effect design team (AR,KP,JG,JB,MN,MM) discussed the naming of the controls, tandems, and what is presented in the keyboard help dialog in our meeting today. Here are some notes. Above, @pixelzoom said:
@arouinfar and @kathy-phet said yes to both of the questions above. So, the only thing that we believe needs to change is the keyboard help section in the code from We also briefly looked at phetsims/scenery-phet#682, and it will be worked on hotkey support as Greenhouse Effect develops. |
The inability to translate these strings was reported during the testing for the 1.1 version of Greenhouse Effect, see #257. |
Making the strings translatable was done in #257. The remaining component of #194 (comment) was the file rename, Ill do that now. |
Done. Closing. |
Test device
MacBook Pro
Operating System
MacOS 12.4
Browser
Chrome
Problem description
For phetsims/qa#819, related to #169.
The opt/alt + k command for the play/pause button works in the sim, but is not currently included in the keyboard nav dialog.
Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: Greenhouse Effect
URL: https://phet-dev.colorado.edu/html/greenhouse-effect/1.1.0-dev.10/phet/greenhouse-effect_all_phet.html
Version: 1.1.0-dev.10 2022-07-08 17:41:59 UTC
Features missing: applicationcache, applicationcache, touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Language: en-US
Window: 1469x861
Pixel Ratio: 2/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 15 uniform: 1024
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 16384x16384
OES_texture_float: true
Dependencies JSON: {}
The text was updated successfully, but these errors were encountered: