mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibGUI: Make autoformatting performed on InsertTextCommand visible to on_edit_action
This commit is contained in:
parent
4232874270
commit
8dc0d9b7b7
Notes:
sideshowbarker
2024-07-19 00:45:54 +09:00
Author: https://github.com/ccapitalK
Commit: 8dc0d9b7b7
Pull-request: https://github.com/SerenityOS/serenity/pull/4388
Issue: https://github.com/SerenityOS/serenity/issues/4369
3 changed files with 65 additions and 44 deletions
|
@ -260,6 +260,7 @@ private:
|
|||
inline void execute(Args&&... args)
|
||||
{
|
||||
auto command = make<T>(*m_document, forward<Args>(args)...);
|
||||
command->perform_formatting(*this);
|
||||
on_edit_action(*command);
|
||||
command->execute_from(*this);
|
||||
m_document->add_to_undo_stack(move(command));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue