mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibLine: Implement ctrl-del: It does the same thing as alt-d, delete-word
This commit is contained in:
committed by
Andreas Kling
parent
5198eb7c1c
commit
e1c54b8a0f
@@ -736,7 +736,10 @@ void Editor::handle_read_event()
|
||||
continue;
|
||||
case '~':
|
||||
if (param1 == 3) { // ^[[3~: delete
|
||||
erase_character_forwards();
|
||||
if (modifiers == CSIMod::Ctrl)
|
||||
erase_alnum_word_forwards();
|
||||
else
|
||||
erase_character_forwards();
|
||||
m_search_offset = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user