1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

LibGUI: Add Ctrl-U to insert mode

While under insert mode, Ctrl-U deletes all characters between the first
non-blank character of the line and the cursor.

Implement delete_from_line_start_to_cursor() in TextEditor. Then, call
the method in VimEditingEngine via its pointer to an instance of
TextEditor.
This commit is contained in:
Ariel Don 2021-07-15 16:35:45 -05:00 committed by Gunnar Beutner
parent 8230bf8944
commit 54bf6a7884
3 changed files with 11 additions and 0 deletions

View file

@ -137,6 +137,7 @@ public:
void delete_current_line();
void delete_previous_word();
void delete_previous_char();
void delete_from_line_start_to_cursor();
void select_all();
virtual void undo();
virtual void redo();