diff --git a/ghost/admin/lib/koenig-editor/addon/options/key-commands.js b/ghost/admin/lib/koenig-editor/addon/options/key-commands.js index 7421dafde4..fa47f3a7be 100644 --- a/ghost/admin/lib/koenig-editor/addon/options/key-commands.js +++ b/ghost/admin/lib/koenig-editor/addon/options/key-commands.js @@ -254,6 +254,16 @@ export const DEFAULT_KEY_COMMANDS = [{ if (isCollapsed && (offset === 0 || section.isCardSection) && !prevSection) { koenig.send('exitCursorAtTop'); + return false; + } + + // Firefox has a bug with cursor movement where it will stop the cursor + // from moving upwards when a card is selected. Default behaviour in + // all other browsers is to place the cursor at the end of the previous + // section so we replicate that here + if (section.isCardSection && prevSection) { + koenig.moveCaretToTailOfSection(prevSection, false); + return; } return false;