0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed focus not fully returning to editor after pressing escape in caption input

no issue

- forced card deselection+reselection so that keys such as `Enter` and `Backspace` work as expected when the card is shown as selected
This commit is contained in:
Kevin Ansfield 2021-11-30 18:06:17 +00:00
parent ba532aa815
commit 927a977257
2 changed files with 4 additions and 0 deletions

View file

@ -122,6 +122,8 @@ export default Component.extend({
_escape(editor) {
editor.element.blur();
this.deselectCard();
this.selectCard();
},
_upOrLeft(editor, key) {

View file

@ -8,6 +8,8 @@
{{yield (hash
CaptionInput=(component "koenig-caption-input"
captureInput=this.isSelected
deselectCard=this.deselectCard
selectCard=this.selectCard
addParagraphAfterCard=this.addParagraphAfterCard
moveCursorToPrevSection=this.moveCursorToPrevSection
moveCursorToNextSection=this.moveCursorToNextSection