| Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
|
| index 70a412827ef32441836f64d110259d2affe622ff..16a5427f5e2a0e46170608b40eb357e2c62e22b9 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
|
| @@ -96,8 +96,13 @@ cvox.KbExplorer.onKeyPress = function(evt) {
|
| /**
|
| * Queues up command description.
|
| * @param {string} command
|
| + * @return {boolean|undefined} True if command existed and was handled.
|
| */
|
| cvox.KbExplorer.onCommand = function(command) {
|
| - var commandText = Msgs.getMsg(cvox.CommandStore.messageForCommand(command));
|
| - chrome.extension.getBackgroundPage()['speak'](commandText);
|
| + var msg = cvox.CommandStore.messageForCommand(command);
|
| + if (msg) {
|
| + var commandText = Msgs.getMsg(msg);
|
| + chrome.extension.getBackgroundPage()['speak'](commandText);
|
| + return true;
|
| + }
|
| };
|
|
|