| Index: chrome/browser/resources/hotword_audio_verification/flow.js
|
| diff --git a/chrome/browser/resources/hotword_audio_verification/flow.js b/chrome/browser/resources/hotword_audio_verification/flow.js
|
| index 8a7632698ee99e8d1054d024d626ead2b926fc04..9c0c4b016000bd674cc6e4203b8a2cd741e25817 100644
|
| --- a/chrome/browser/resources/hotword_audio_verification/flow.js
|
| +++ b/chrome/browser/resources/hotword_audio_verification/flow.js
|
| @@ -545,12 +545,15 @@
|
|
|
| /**
|
| * Displays the current step. If the current step is not the first step,
|
| - * also hides the previous step.
|
| + * also hides the previous step. Focuses the current step's first button.
|
| * @private
|
| */
|
| Flow.prototype.showStep_ = function() {
|
| - var currentStep = this.currentFlow_[this.currentStepIndex_];
|
| - document.getElementById(currentStep).hidden = false;
|
| + var currentStepId = this.currentFlow_[this.currentStepIndex_];
|
| + var currentStep = document.getElementById(currentStepId);
|
| + currentStep.hidden = false;
|
| +
|
| + cr.ui.setInitialFocus(currentStep);
|
|
|
| var previousStep = null;
|
| if (this.currentStepIndex_ > 0)
|
|
|