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:
parent
ba532aa815
commit
927a977257
2 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,8 @@ export default Component.extend({
|
|||
|
||||
_escape(editor) {
|
||||
editor.element.blur();
|
||||
this.deselectCard();
|
||||
this.selectCard();
|
||||
},
|
||||
|
||||
_upOrLeft(editor, key) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue