mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibLine: Implement ctrl-del: It does the same thing as alt-d, delete-word
This commit is contained in:
parent
5198eb7c1c
commit
e1c54b8a0f
Notes:
sideshowbarker
2024-07-19 02:38:40 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/e1c54b8a0f6 Pull-request: https://github.com/SerenityOS/serenity/pull/3485 Reviewed-by: https://github.com/alimpfard
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue