mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03: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
@ -736,6 +736,9 @@ void Editor::handle_read_event()
|
||||
continue;
|
||||
case '~':
|
||||
if (param1 == 3) { // ^[[3~: delete
|
||||
if (modifiers == CSIMod::Ctrl)
|
||||
erase_alnum_word_forwards();
|
||||
else
|
||||
erase_character_forwards();
|
||||
m_search_offset = 0;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user