| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
|
| index 9f70869aa418c9a578c65ffd9e8add53461ed4f0..3ae083c2eae0c3b9431e39c82eaaecaace0ab395 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js
|
| @@ -195,8 +195,11 @@ CommandHandler.onCommand = function(command) {
|
| }
|
|
|
| // Require a current range.
|
| - if (!ChromeVoxState.instance.currentRange_)
|
| - return true;
|
| + if (!ChromeVoxState.instance.currentRange_ ||
|
| + !ChromeVoxState.instance.currentRange_.isValid()) {
|
| + cvox.ChromeVox.tts.speak(Msgs.getMsg('no_focus'), cvox.QueueMode.FLUSH);
|
| + return false;
|
| + }
|
|
|
| // Next/classic compat commands hereafter.
|
| if (ChromeVoxState.instance.mode == ChromeVoxMode.CLASSIC ||
|
|
|