Bug 1512132 Comment 9 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Not that my proposed fix is complicated, but here is how it would look de-minified (according to the link in comment 7):
```
    var isGecko65down = tinymce.isGecko && parseInt(navigator.userAgent.match(/Firefox\/(\d+)/)[1]) < 66;

    // ATLASSIAN - CONFDEV-5541 - Fix cursor position if enter / return / delete / backspace is pressed
    // on Firefox 65 and earlier.
    if(isGecko65down) {
        ed.onKeyDown.add(function(ed, e) {
            if ((e.keyCode === KEY_CODE.ENTER || e.keyCode === KEY_CODE.BACKSPACE || e.keyCode === KEY_CODE.DELETE)) {
                // Enter may be broken if the cursor is in the wrong position - fix first
                ed.selection.normalize();
            }
        });
    }

    [omitting unrelated code]

    // Fx65 and earlier will fire all three key events for backspace and delete. If you register this on
    // IE and Chrome then you get CONFDEV-4062 which is fun.
    isGecko65down && ed.onKeyPress.add(deleteAndBackspaceKeyHandling);
```

Back to Bug 1512132 Comment 9