| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| index 86174b675228552c723c24c8d0cc400d3a5e0f0b..64a60801199f2be2bb0798689f419e33a7391fae 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| @@ -1068,15 +1068,25 @@ Output.prototype = {
|
| var text = node.value;
|
| if (!node.state.editable && node.name == text)
|
| return;
|
| +
|
| + var selectedText = '';
|
| if (text !== undefined) {
|
| if (node.textSelStart !== undefined) {
|
| options.annotation.push(new Output.SelectionSpan(
|
| node.textSelStart,
|
| node.textSelEnd));
|
| +
|
| + selectedText =
|
| + node.value.substring(node.textSelStart, node.textSelEnd);
|
| }
|
| }
|
| options.annotation.push(token);
|
| - this.append_(buff, text, options);
|
| + if (selectedText) {
|
| + this.append_(buff, selectedText, options);
|
| + this.append_(buff, Msgs.getMsg('selected'), options);
|
| + } else {
|
| + this.append_(buff, text, options);
|
| + }
|
| } else if (token == 'name') {
|
| options.annotation.push(token);
|
| var earcon = node ? this.findEarcon_(node, opt_prevNode) : null;
|
|
|