From 9e87e1aefa8e61e96fa4f080523d4b1b6a47f90b Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 8 Aug 2026 08:28:41 +0200 Subject: [PATCH] fix: Use Enter for Windows boot key retries (#2116) --- src/power.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/power.sh b/src/power.sh index 51ef7771..33e37c5e 100644 --- a/src/power.sh +++ b/src/power.sh @@ -124,7 +124,7 @@ waitForBoot() { if (( ! keySent )) && needsBootKey; then if [ -s "$QEMU_PTY" ] && grep -Fq "Press any key to boot from" "$QEMU_PTY"; then - if sendKey spc 0 500; then + if sendKey ret 0 500; then keySent=1 fi elif bootKeyReady; then @@ -133,13 +133,13 @@ waitForBoot() { if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then # Keep the legacy fallback at about one second after the DVD marker. if (( keyWait >= 5 )); then - if sendKey spc 0 100 6 0.25; then + if sendKey ret 0 100 6 0.25; then keySent=1 fi fi elif (( keyWait >= 1 )); then # Modern Windows usually needs blind timing, so start earlier. - if sendKey spc 0 100 6 0.25; then + if sendKey ret 0 100 6 0.25; then keySent=1 fi fi