mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibGUI: Indent selected text on tab press
If selected text is less than a whole line, usual delete/replace takes place. Otherwise, if the selected text is a whole line or spans multiple lines, the selection will be indented.
This commit is contained in:
parent
80705a72bd
commit
2fbaa7996c
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/huttongrabiel
Commit: 2fbaa7996c
Pull-request: https://github.com/SerenityOS/serenity/pull/13269
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/linusg
4 changed files with 80 additions and 2 deletions
|
@ -151,6 +151,8 @@ public:
|
|||
void select_current_line();
|
||||
virtual void undo();
|
||||
virtual void redo();
|
||||
bool is_indenting_selection();
|
||||
void indent_selection();
|
||||
|
||||
Function<void()> on_change;
|
||||
Function<void(bool modified)> on_modified_change;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue