Skip to content

Commit

Permalink
remove draggable row in basic section, phetsims/my-solar-system#93
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 17, 2023
1 parent 30f9fca commit 78a95a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions js/SceneryPhetStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ type StringsType = {
'moveToPreviousItemOrGroupStringProperty': LinkableProperty<string>;
'pressButtonsStringProperty': LinkableProperty<string>;
'moveBetweenItemsInAGroupStringProperty': LinkableProperty<string>;
'moveDraggableObjectsStringProperty': LinkableProperty<string>;
'setValuesInKeypadStringProperty': LinkableProperty<string>;
'resetAllStringProperty': LinkableProperty<string>;
'exitADialogStringProperty': LinkableProperty<string>;
Expand Down Expand Up @@ -160,7 +159,6 @@ type StringsType = {
'shiftTabGroupDescriptionStringProperty': LinkableProperty<string>;
'pressButtonsDescriptionStringProperty': LinkableProperty<string>;
'groupNavigationDescriptionStringProperty': LinkableProperty<string>;
'moveDraggableObjectsDescriptionStringProperty': LinkableProperty<string>;
'setValuesInKeypadDescriptionStringProperty': LinkableProperty<string>;
'exitDialogDescriptionStringProperty': LinkableProperty<string>;
'toggleCheckboxesDescriptionStringProperty': LinkableProperty<string>;
Expand Down
14 changes: 0 additions & 14 deletions js/keyboard/help/BasicActionsKeyboardHelpSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ type SelfOptions = {
// if true, the help content will include information about how to interact with checkboxes
withCheckboxContent?: boolean;

// if true, the help content will include information about how to interact with 2-d draggable content
withDraggableContent?: boolean;

// if true, the help content will include information about how to interact with a keypad
withKeypadContent?: boolean;
};
Expand All @@ -43,7 +40,6 @@ export default class BasicActionsKeyboardHelpSection extends KeyboardHelpSection

const options = optionize<BasicActionsKeyboardHelpSectionOptions, SelfOptions, KeyboardHelpSectionOptions>()( {
withCheckboxContent: false,
withDraggableContent: false,
withKeypadContent: false
}, providedOptions );

Expand Down Expand Up @@ -110,16 +106,6 @@ export default class BasicActionsKeyboardHelpSection extends KeyboardHelpSection
moveBetweenItemsInAGroupRow
];

if ( options.withDraggableContent ) {

// 'Move draggable objects'
const moveDraggableObjectsRow = KeyboardHelpSectionRow.labelWithIcon(
SceneryPhetStrings.keyboardHelpDialog.moveDraggableObjectsStringProperty, KeyboardHelpIconFactory.arrowKeysRowIcon(), {
labelInnerContent: SceneryPhetStrings.a11y.keyboardHelpDialog.general.moveDraggableObjectsDescriptionStringProperty
} );
content.push( moveDraggableObjectsRow );
}

if ( options.withKeypadContent ) {

// 'Set values within keypad'
Expand Down
6 changes: 0 additions & 6 deletions scenery-phet-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@
"keyboardHelpDialog.moveBetweenItemsInAGroup": {
"value": "Move between items in a group"
},
"keyboardHelpDialog.moveDraggableObjects": {
"value": "Move draggable objects"
},
"keyboardHelpDialog.setValuesInKeypad": {
"value": "Set values within keypad"
},
Expand Down Expand Up @@ -366,9 +363,6 @@
"groupNavigationDescription": {
"value": "Move between items in a group with Left and Right arrow keys or Up and Down arrow keys."
},
"moveDraggableObjectsDescription": {
"value": "Move draggable objects with Left and Right arrow keys or Up and Down arrow keys."
},
"setValuesInKeypadDescription": {
"value": "Set values within keypad using number keys 0-9."
},
Expand Down

0 comments on commit 78a95a7

Please sign in to comment.