0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Focus editor after undo/redo

This matches the behaviour of all the other commands, and means if you
add toolbar buttons for undo/redo they work as expected.

Fixes #445.
This commit is contained in:
Neil Jenkins 2023-11-08 09:44:16 +01:00
parent 942486e452
commit efdff6c71b

View file

@ -905,7 +905,7 @@ class Squire {
}); });
this.fireEvent('input'); this.fireEvent('input');
} }
return this; return this.focus();
} }
redo(): Squire { redo(): Squire {
@ -926,7 +926,7 @@ class Squire {
}); });
this.fireEvent('input'); this.fireEvent('input');
} }
return this; return this.focus();
} }
// --- Get and set data // --- Get and set data