From 9a7aea3d94db29fa20a41f617ced30d5aec11461 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 28 Oct 2019 18:23:04 -0400 Subject: [PATCH] touch interaction cue on alert, see #452 --- js/balloons-and-static-electricity/BASEA11yStrings.js | 7 +++++-- .../view/describers/BalloonLocationDescriber.js | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/balloons-and-static-electricity/BASEA11yStrings.js b/js/balloons-and-static-electricity/BASEA11yStrings.js index f2916740..b1d588cd 100644 --- a/js/balloons-and-static-electricity/BASEA11yStrings.js +++ b/js/balloons-and-static-electricity/BASEA11yStrings.js @@ -118,7 +118,7 @@ define( require => { //-------------------------------------------------------------------------- // Play Area landmark strings, 'near' or 'at' added through string patterns - //-------------------------------------------------------------------------- + //-------------------------------------------------------------------------- landmarkNearSweater: { value: 'sweater' }, @@ -717,9 +717,12 @@ define( require => { combinedChargePattern: { value: '{{grabbedBalloon}}. {{otherBalloon}}' }, - interactionCue: { + keyboardInteractionCue: { value: 'Press W, A, S, or D key to move balloon. Space to release.' }, + touchInteractionCue: { + value: 'Drag finger to move balloon. Lift finger to release.' + }, //-------------------------------------------------------------------------- // Balloon sweater rubbing strings diff --git a/js/balloons-and-static-electricity/view/describers/BalloonLocationDescriber.js b/js/balloons-and-static-electricity/view/describers/BalloonLocationDescriber.js index 7001dfe8..23c0936f 100644 --- a/js/balloons-and-static-electricity/view/describers/BalloonLocationDescriber.js +++ b/js/balloons-and-static-electricity/view/describers/BalloonLocationDescriber.js @@ -72,7 +72,8 @@ define( require => { const balloonNearString = BASEA11yStrings.balloonNear.value; const locationAndInducedChargePatternString = BASEA11yStrings.locationAndInducedChargePattern.value; const singleStatementPatternString = BASEA11yStrings.singleStatementPattern.value; - const interactionCueString = BASEA11yStrings.interactionCue.value; + const keyboardInteractionCueString = BASEA11yStrings.keyboardInteractionCue.value; + const touchInteractionCueString = BASEA11yStrings.touchInteractionCue.value; const balloonLabelWithAttractiveStatePatternString = BASEA11yStrings.balloonLabelWithAttractiveStatePattern.value; const balloonVeryCloseToString = BASEA11yStrings.balloonVeryCloseTo.value; const continuousMovementPatternString = BASEA11yStrings.continuousMovementPattern.value; @@ -903,7 +904,7 @@ define( require => { if ( !this.balloonModel.successfulPickUp ) { description = StringUtils.fillIn( grabbedWithHelpPatternString, { grabbedAlert: description, - help: interactionCueString + help: phet.joist.sim.supportsTouchA11y ? touchInteractionCueString : keyboardInteractionCueString } ); }