mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
LibGUI: Add Ctrl-H to insert mode
In Vim, Ctrl-H is effectively equivalent to backspace in insert mode, as it deletes the previous character. This commit implements method delete_previous_char() to TextEditor. delete_char() already exists in EditingEngine, but it deletes the next character rather than the previous. delete_previous_char() is then called from within VimEditingEngine.
This commit is contained in:
parent
808e5e813f
commit
8230bf8944
Notes:
sideshowbarker
2024-07-18 08:42:19 +09:00
Author: https://github.com/arieldon
Commit: 8230bf8944
Pull-request: https://github.com/SerenityOS/serenity/pull/8796
Reviewed-by: https://github.com/sin-ack ✅
3 changed files with 21 additions and 0 deletions
|
@ -136,6 +136,7 @@ public:
|
|||
void do_delete();
|
||||
void delete_current_line();
|
||||
void delete_previous_word();
|
||||
void delete_previous_char();
|
||||
void select_all();
|
||||
virtual void undo();
|
||||
virtual void redo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue