1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +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:
huttongrabiel 2022-06-18 12:02:51 -07:00 committed by Sam Atkins
parent 80705a72bd
commit 2fbaa7996c
4 changed files with 80 additions and 2 deletions

View file

@ -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;