Skip to content

Ignore Enter Key for 50ms When Showing New View in Attended Installer#17781

Open
chriso-ms wants to merge 2 commits into
microsoft:3.0-devfrom
chriso-ms:ongchris/input-cooldown
Open

Ignore Enter Key for 50ms When Showing New View in Attended Installer#17781
chriso-ms wants to merge 2 commits into
microsoft:3.0-devfrom
chriso-ms:ongchris/input-cooldown

Conversation

@chriso-ms

@chriso-ms chriso-ms commented Jun 22, 2026

Copy link
Copy Markdown

When running the ISO attended installer from a USB drive on a computer, the Enter key somehow stays buffered or gets repeated and the terminal installer automatically selects the first option and jumps to the next screen. The problem is also seen when trying to go backwards resulting in failure to return to the previous screen (select Back, previous view selects Next and the current view comes back).

This issue is not seen when mounting the installer as a virtual USB to install on a server.

When using a USB stick, there is also a risk of the USB getting corrupted as it shows up as /dev/sda, and the installer automatically selects the USB stick as the target and jumps over the screen. During testing, I could not see the Disk selection screen and would end up inadvertently trying to install on it.

Adding a 50ms ignore interval for the Enter key when switching views resolves the issue. I did not see an option in the tcell library to filter out repeated keys. If there's a better way to resolve this please let me know!

@chriso-ms chriso-ms requested a review from a team as a code owner June 22, 2026 21:37
@microsoft-github-policy-service microsoft-github-policy-service Bot added Tools 3.0-dev PRs Destined for AzureLinux 3.0 labels Jun 22, 2026
@chriso-ms chriso-ms marked this pull request as draft June 22, 2026 21:39
@chriso-ms chriso-ms marked this pull request as ready for review June 24, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant