Skip to content

Commit

Permalink
keyboard help, #249
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 4, 2022
1 parent 57adbe8 commit 61dd572
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions js/common/view/MoveKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ import KeyboardHelpSectionRow from '../../../../scenery-phet/js/keyboard/help/Ke
import PhScaleStrings from '../../PhScaleStrings.js';
import phScale from '../../phScale.js';

type ArrowType = 'upDown' | 'leftRight' | 'both';

export default class MoveKeyboardHelpContent extends KeyboardHelpSection {

public constructor( titleProperty: TReadOnlyProperty<string>, arrowType: ArrowType = 'both' ) {
public constructor( titleProperty: TReadOnlyProperty<string> ) {

// arrows or WASD
const normalRow = KeyboardHelpSectionRow.labelWithIcon( PhScaleStrings.keyboardHelpDialog.moveStringProperty,
Expand Down
2 changes: 1 addition & 1 deletion js/macro/view/MacroKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class MacroKeyboardHelpContent extends TwoColumnKeyboardHelpConte
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveThePHProbeStringProperty ),

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

// Choose a Solute
new ComboBoxKeyboardHelpSection( {
Expand Down
2 changes: 1 addition & 1 deletion js/micro/view/MicroKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class MicroKeyboardHelpContent extends TwoColumnKeyboardHelpConte
const leftColumn = [

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

// Choose a Solute
new ComboBoxKeyboardHelpSection( {
Expand Down
2 changes: 1 addition & 1 deletion js/mysolution/view/MySolutionKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class MySolutionKeyboardHelpContent extends TwoColumnKeyboardHelp
const leftColumn = [

// Move the Dropper
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveTheGraphIndicatorsStringProperty, 'upDown' )
new MoveKeyboardHelpContent( PhScaleStrings.keyboardHelpDialog.moveTheGraphIndicatorsStringProperty )
];

const rightColumn = [
Expand Down

0 comments on commit 61dd572

Please sign in to comment.