1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

boot: Accept Ctrl+Del for deleting words

This commit is contained in:
Jan Janssen 2022-08-29 10:39:49 +02:00
parent d17d0e6770
commit 230f78206a
2 changed files with 4 additions and 1 deletions

View File

@ -257,12 +257,13 @@
<varlistentry> <varlistentry>
<term><keycap>Esc</keycap></term> <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> <listitem><para>Abort the edit and quit the editor</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><keycombo><keycap>Ctrl</keycap><keycap>k</keycap></keycombo></term> <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>
@ -272,6 +273,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><keycombo><keycap>Ctrl</keycap><keycap>Del</keycap></keycombo></term>
<term><keycombo><keycap>Alt</keycap><keycap>d</keycap></keycombo></term> <term><keycombo><keycap>Alt</keycap><keycap>d</keycap></keycombo></term>
<listitem><para>Delete word forwards</para></listitem> <listitem><para>Delete word forwards</para></listitem>
</varlistentry> </varlistentry>

View File

@ -254,6 +254,7 @@ static bool line_edit(
cursor_left(&cursor, &first); cursor_left(&cursor, &first);
continue; continue;
case KEYPRESS(EFI_CONTROL_PRESSED, SCAN_DELETE, 0):
case KEYPRESS(EFI_ALT_PRESSED, 0, 'd'): case KEYPRESS(EFI_ALT_PRESSED, 0, 'd'):
/* kill-word */ /* kill-word */
clear = 0; clear = 0;