Skip to content

Commit

Permalink
SelfVoicingInputListener -> VoicingInputListener, see phetsims/tasks#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 24, 2021
1 parent 92e1011 commit efa1755
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/view/GFLBCheckboxPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ISLCConstants from '../../../inverse-square-law-common/js/ISLCConstants.j
import ISLCPanel from '../../../inverse-square-law-common/js/view/ISLCPanel.js';
import merge from '../../../phet-core/js/merge.js';
import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import Text from '../../../scenery/js/nodes/Text.js';
import VerticalCheckboxGroup from '../../../sun/js/VerticalCheckboxGroup.js';
import Tandem from '../../../tandem/js/Tandem.js';
Expand Down Expand Up @@ -73,7 +73,7 @@ class GFLBCheckboxPanel extends ISLCPanel {
];

checkboxGroup.children.forEach( ( child, i ) => {
child.addInputListener( new SelfVoicingInputListener( {
child.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
const objectContent = checkboxItems[ i ].label;
const hintContent = itemHintList[ i ];
Expand Down
4 changes: 2 additions & 2 deletions js/view/GFLBMassControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Shape from '../../../kite/js/Shape.js';
import merge from '../../../phet-core/js/merge.js';
import StringUtils from '../../../phetcommon/js/util/StringUtils.js';
import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import SelfVoicingWrapperNode from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingWrapperNode.js';
import NumberPicker from '../../../scenery-phet/js/NumberPicker.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
Expand Down Expand Up @@ -177,7 +177,7 @@ class GFLBMassControl extends Panel {
phet.joist.sim.voicingUtteranceQueue.addToBack( alertContent );
};

numberPicker.addInputListener( new SelfVoicingInputListener( {
numberPicker.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
speakValueAndHelpText();
},
Expand Down
4 changes: 2 additions & 2 deletions js/view/GFLBScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import ScreenView from '../../../joist/js/ScreenView.js';
import StringUtils from '../../../phetcommon/js/util/StringUtils.js';
import ModelViewTransform2 from '../../../phetcommon/js/view/ModelViewTransform2.js';
import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import SelfVoicingQuickControl from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingQuickControl.js';
import ResetAllButton from '../../../scenery-phet/js/buttons/ResetAllButton.js';
import sceneryPhetStrings from '../../../scenery-phet/js/sceneryPhetStrings.js';
Expand Down Expand Up @@ -449,7 +449,7 @@ class GFLBScreenView extends ScreenView {
} );
this.addChild( selfVoicingQuickControl );

resetAllButton.addInputListener( new SelfVoicingInputListener( {
resetAllButton.addInputListener( new VoicingInputListener( {
onFocusIn: () => {

// on focus, speak the name of the reset all button
Expand Down

0 comments on commit efa1755

Please sign in to comment.