46968b6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
46968b6
From: Javier Martinez Canillas <javierm@redhat.com>
46968b6
Date: Wed, 22 Apr 2020 12:41:52 +0200
46968b6
Subject: [PATCH] kern/term: Also accept F8 as a user interrupt key
46968b6
46968b6
Make F8, which used to be the hotkey to show the Windows boot menu during
46968b6
boot for a long long time, also interrupt sleeps / stop the menu countdown.
46968b6
46968b6
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
46968b6
---
46968b6
 grub-core/kern/term.c | 5 +++--
46968b6
 1 file changed, 3 insertions(+), 2 deletions(-)
46968b6
46968b6
diff --git a/grub-core/kern/term.c b/grub-core/kern/term.c
e622855
index 14d5964983..4d61f4e979 100644
46968b6
--- a/grub-core/kern/term.c
46968b6
+++ b/grub-core/kern/term.c
46968b6
@@ -144,9 +144,10 @@ grub_key_is_interrupt (int key)
46968b6
   /*
46968b6
    * ESC sometimes is the BIOS setup hotkey and may be hard to discover, also
46968b6
    * check F4, which was chosen because is not used as a hotkey to enter the
46968b6
-   * BIOS setup by any vendor.
46968b6
+   * BIOS setup by any vendor. Also, F8 which was the key to get the Windows
46968b6
+   * bootmenu for a long time.
46968b6
    */
46968b6
-  if (key == GRUB_TERM_ESC || key == GRUB_TERM_KEY_F4)
46968b6
+  if (key == GRUB_TERM_ESC || key == GRUB_TERM_KEY_F4 || key == GRUB_TERM_KEY_F8)
46968b6
     return 1;
46968b6
 
46968b6
   /*