| Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
|
| index bbf63da5081734f38a1f0c5a271bd63a2ca4a97d..b40df3c09fc89325f05601e9faddad9a258dbca9 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
|
| @@ -98,6 +98,31 @@ cvox.OptionsPage.init = function() {
|
| $('version').textContent =
|
| chrome.app.getDetails().version;
|
| }
|
| +
|
| + // Temporary secret way to enable ChromeVox Next for the current run of
|
| + // ChromeVox.
|
| + var next = 'next';
|
| + document.body.addEventListener('keypress', function(evt) {
|
| + if (next === undefined) {
|
| + return;
|
| + }
|
| + var key = String.fromCharCode(evt.charCode);
|
| + if (next[0] === key) {
|
| + next = next.slice(1);
|
| +
|
| + if (next === '') {
|
| + cvox.OptionsPage.speak(
|
| + 'You are now running ChromeVox Next; open a new tab to start',
|
| + cvox.QueueMode.FLUSH);
|
| + next = undefined;
|
| + chrome.extension.getBackgroundPage()['global']
|
| + .backgroundObj.forceChromeVoxNextActive();
|
| + }
|
| + } else {
|
| + next = 'next';
|
| + }
|
| + return true;
|
| + }, true);
|
| };
|
|
|
| /**
|
|
|