aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-05-26 10:04:37 +0200
committerHelge Deller <deller@gmx.de>2022-05-26 10:04:37 +0200
commitd5f54cbde985631b415c9c981b8ff06e896e94b2 (patch)
tree80aa1ec9b3ea1a017a960cd65aa30b8dd473c379
parent17ca7a9998c1755d42321cfc0afb5f480f5a58ff (diff)
downloadseabios-hppa-d5f54cbde985631b415c9c981b8ff06e896e94b2.zip
seabios-hppa-d5f54cbde985631b415c9c981b8ff06e896e94b2.tar.gz
seabios-hppa-d5f54cbde985631b415c9c981b8ff06e896e94b2.tar.bz2
parisc: Allow key Z as Y in boot menu
On german keyboards, the Z key is positioned at the same location as Y on english keyboards. German users may thus type Z instead of Y. So this patch allows Z as synonym for Y. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/parisc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index b679954..27fe705 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -1823,7 +1823,7 @@ static void menu_loop(void)
{
int scsi_boot_target;
char input[24];
- char *c;
+ char *c, reply;
// snprintf(input, sizeof(input), "BOOT FWSCSI.%d.0", boot_drive->target);
again:
@@ -1877,9 +1877,11 @@ again2:
input[0] = '\0';
enter_text(input, 1);
parisc_putchar('\n');
- if (input[0] == 'C' || input[0] == 'c')
+ reply = input[0];
+ if (reply == 'C' || reply == 'c')
goto again2;
- if (input[0] == 'Y' || input[0] == 'y')
+ // allow Z as Y. It's the key used on german keyboards.
+ if (reply == 'Y' || reply == 'y' || reply == 'Z' || reply == 'z')
interact_ipl = 1;
}