]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Accept Ctrl+Del for deleting words
authorJan Janssen <medhefgo@web.de>
Mon, 29 Aug 2022 08:39:49 +0000 (10:39 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 7 Sep 2022 10:55:55 +0000 (12:55 +0200)
man/systemd-boot.xml
src/boot/efi/boot.c

index 99a749b32705db6dd0432b4aeacb4ce08e5ceaf1..7a2d3ec826490fad3290e13e2aa4adde943a016d 100644 (file)
 
       <varlistentry>
         <term><keycap>Esc</keycap></term>
+        <term><keycombo><keycap>Ctrl</keycap><keycap>c</keycap></keycombo></term>
         <listitem><para>Abort the edit and quit the editor</para></listitem>
       </varlistentry>
 
       <varlistentry>
         <term><keycombo><keycap>Ctrl</keycap><keycap>k</keycap></keycombo></term>
-        <listitem><para>Clear the command line</para></listitem>
+        <listitem><para>Clear the command line forwards</para></listitem>
       </varlistentry>
 
       <varlistentry>
       </varlistentry>
 
       <varlistentry>
+        <term><keycombo><keycap>Ctrl</keycap><keycap>Del</keycap></keycombo></term>
         <term><keycombo><keycap>Alt</keycap><keycap>d</keycap></keycombo></term>
         <listitem><para>Delete word forwards</para></listitem>
       </varlistentry>
index a4804887acc658641f0b25ea5fe851c3c467ff18..c41d40281c44a3e5916627f9aa4c2b9390911e11 100644 (file)
@@ -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;