Flush out extra unselected speech.

This commit is contained in:
Peter Xiao 2013-08-15 17:20:36 -07:00
commit ca1f431df4

View file

@ -487,7 +487,6 @@ var speakChar = function(cursor) {
* @param {!cvoxAce.Cursor} currCursor Current cursor position. * @param {!cvoxAce.Cursor} currCursor Current cursor position.
*/ */
var speakDisplacement = function(lastCursor, currCursor) { var speakDisplacement = function(lastCursor, currCursor) {
cvox.Api.stop();
var line = getCurrentLine(currCursor); var line = getCurrentLine(currCursor);
/* Get the text that we jumped past. */ /* Get the text that we jumped past. */
@ -495,7 +494,7 @@ var speakDisplacement = function(lastCursor, currCursor) {
/* Speak out loud spaces. */ /* Speak out loud spaces. */
displace = displace.replace(/ /g, ' space '); displace = displace.replace(/ /g, ' space ');
cvox.Api.speak(displace, 1); cvox.Api.speak(displace);
}; };
/** /**