]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: add control-less alias for Ctrl-l hotkey
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Aug 2023 09:28:10 +0000 (11:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Aug 2023 09:29:36 +0000 (11:29 +0200)
I couldn't get ctrl work properly over serial line/qemu. Hence, let's
add an alias for Ctrl-l: a simple Shift-l (i.e. uppercase L)

(Note that lowercase L will result in selection of the first Linux
entry, hence we stay away from that)

src/boot/efi/boot.c

index 30272ce2dd53f46ffd7d4a17a4354a951bf5817b..3704ee684697e9c683e0c4bdc4ca696df74e1668 100644 (file)
@@ -963,6 +963,7 @@ static bool menu_run(
 
                 case KEYPRESS(EFI_CONTROL_PRESSED, 0, 'l'):
                 case KEYPRESS(EFI_CONTROL_PRESSED, 0, CHAR_CTRL('l')):
+                case 'L': /* only uppercase, do not conflict with lower-case 'l' which picks first Linux entry */
                         clear = true;
                         break;