Skip to content

Commit

Permalink
refactor sims to use screen-based keyboard help content, phetsims/joi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 5, 2020
1 parent c309271 commit eba4149
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/gravity-force-lab-basics-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SELF_VOICING = phet.chipper.queryParameters.supportsSelfVoicing;

const gravityForceLabBasicsTitleString = gravityForceLabBasicsStrings[ 'gravity-force-lab-basics' ].title;

const keyboardHelpContent = new GravityForceLabKeyboardHelpContent( {
const keyboardHelpNode = new GravityForceLabKeyboardHelpContent( {
isBasics: true // in basics, there is no way to change the mass in smaller steps
} );

Expand All @@ -37,7 +37,7 @@ const simOptions = {
soundDesign: 'Ashton Morris',
thanks: ''
},
keyboardHelpNode: keyboardHelpContent,
hasKeyboardHelpContent: true,
createOptionsDialogContent: SELF_VOICING ? () => new WebSpeechDialogContent() : null
};

Expand All @@ -51,7 +51,8 @@ simLauncher.launch( () => {
model => new GFLBScreenView( model, gravityForceLabBasicsScreenTandem.createTandem( 'view' ) ),
{
backgroundColorProperty: GFLBConstants.BACKGROUND_COLOR_PROPERTY,
tandem: gravityForceLabBasicsScreenTandem
tandem: gravityForceLabBasicsScreenTandem,
keyboardHelpNode: keyboardHelpNode
}
)
], simOptions );
Expand Down

0 comments on commit eba4149

Please sign in to comment.