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:
parent
80705a72bd
commit
2fbaa7996c
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