From 230f78206a579c624f4bf5c5b28c4e70ff14a9d3 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 29 Aug 2022 10:39:49 +0200 Subject: [PATCH] boot: Accept Ctrl+Del for deleting words --- man/systemd-boot.xml | 4 +++- src/boot/efi/boot.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/man/systemd-boot.xml b/man/systemd-boot.xml index 99a749b327..7a2d3ec826 100644 --- a/man/systemd-boot.xml +++ b/man/systemd-boot.xml @@ -257,12 +257,13 @@ Esc + Ctrlc Abort the edit and quit the editor Ctrlk - Clear the command line + Clear the command line forwards @@ -272,6 +273,7 @@ + CtrlDel Altd Delete word forwards diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index a4804887ac..c41d40281c 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -254,6 +254,7 @@ static bool line_edit( cursor_left(&cursor, &first); continue; + case KEYPRESS(EFI_CONTROL_PRESSED, SCAN_DELETE, 0): case KEYPRESS(EFI_ALT_PRESSED, 0, 'd'): /* kill-word */ clear = 0;