mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibVT/LibLine: Delete words when pressing Ctrl+Backspace in Terminal
This commit is contained in:
parent
f7a252ae85
commit
7aabda37d1
2 changed files with 17 additions and 0 deletions
|
@ -986,6 +986,12 @@ void Editor::handle_read_event()
|
|||
case 'F': // ^[[F: end
|
||||
go_end();
|
||||
continue;
|
||||
case 127:
|
||||
if (modifiers == CSIMod::Ctrl)
|
||||
erase_alnum_word_backwards();
|
||||
else
|
||||
erase_character_backwards();
|
||||
continue;
|
||||
case '~':
|
||||
if (param1 == 3) { // ^[[3~: delete
|
||||
if (modifiers == CSIMod::Ctrl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue