Skip to content

Commit

Permalink
keyboard help for Micro screen, #249
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 4, 2022
1 parent 417ef75 commit fcb2f19
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
3 changes: 2 additions & 1 deletion js/macro/view/MacroKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import PhScaleStrings from '../../PhScaleStrings.js';
import MoveKeyboardHelpContent from '../../common/view/MoveKeyboardHelpContent.js';

export default class MacroKeyboardHelpContent extends TwoColumnKeyboardHelpContent {

public constructor() {

const leftColumn = [

// Move the Dropper
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveTheDropperStringProperty ),
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveTheDropperOrPHProbeStringProperty ),

// Choose a Solute
new ComboBoxKeyboardHelpSection( {
Expand Down
36 changes: 31 additions & 5 deletions js/micro/view/MicroKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
// Copyright 2022, University of Colorado Boulder

//TODO https://github.com/phetsims/ph-scale/issues/249 same as MacroKeyboardHelpContent, except for moveTheDropperStringProperty
/**
* MicroKeyboardHelpContent is the keyboard-help content for the 'Micro' screen.
*
* @author Chris Malley (PixelZoom, Inc.)
*/

import { Node, Text } from '../../../../scenery/js/imports.js';
import TwoColumnKeyboardHelpContent from '../../../../scenery-phet/js/keyboard/help/TwoColumnKeyboardHelpContent.js';
import phScale from '../../phScale.js';
import MoveKeyboardHelpContent from '../../common/view/MoveKeyboardHelpContent.js';
import PhScaleStrings from '../../PhScaleStrings.js';
import ComboBoxKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/ComboBoxKeyboardHelpSection.js';
import BasicActionsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/BasicActionsKeyboardHelpSection.js';

export default class MicroKeyboardHelpContent extends TwoColumnKeyboardHelpContent {

export default class MicroKeyboardHelpContent extends Node {
public constructor() {
super( {
children: [ new Text( 'Under Construction' ) ]
} );

const leftColumn = [

// Move the Dropper
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveTheDropperStringProperty ),

// Choose a Solute
new ComboBoxKeyboardHelpSection( {
headingString: PhScaleStrings.keyboardHelpDialog.chooseASoluteStringProperty,
thingAsLowerCaseSingular: PhScaleStrings.keyboardHelpDialog.soluteStringProperty,
thingAsLowerCasePlural: PhScaleStrings.keyboardHelpDialog.solutesStringProperty
} )
];

const rightColumn = [

// Basic Actions
new BasicActionsKeyboardHelpSection( {
withCheckboxContent: true
} )
];

super( leftColumn, rightColumn );
}
}

Expand Down

0 comments on commit fcb2f19

Please sign in to comment.