mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -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:
parent
942486e452
commit
efdff6c71b
1 changed files with 2 additions and 2 deletions
|
@ -905,7 +905,7 @@ class Squire {
|
|||
});
|
||||
this.fireEvent('input');
|
||||
}
|
||||
return this;
|
||||
return this.focus();
|
||||
}
|
||||
|
||||
redo(): Squire {
|
||||
|
@ -926,7 +926,7 @@ class Squire {
|
|||
});
|
||||
this.fireEvent('input');
|
||||
}
|
||||
return this;
|
||||
return this.focus();
|
||||
}
|
||||
|
||||
// --- Get and set data
|
||||
|
|
Loading…
Reference in a new issue