Testausserveri / matikkaeditori.fi

Online math notebook based on familiar Abitti editor
https://matikkaeditori.fi
GNU General Public License v3.0
11 stars 3 forks source link

Console error when pressing Ctrl+Backspace in a formula while having all text selected #50

Closed Eldemarkki closed 3 months ago

Eldemarkki commented 1 year ago

Steps to reproduce:

  1. Create new answer
  2. Add a new formula with "Lisää kaava"
  3. Type e.g. "aaa" to the formula
  4. Press Ctrl + A to select all text inside the formula. Keep Ctrl pressed
  5. While still pressing Ctrl, press also Backspace.

It prints the following error to the console. I tested this on Firefox 118, on Linux.

Uncaught ReferenceError: ctrlr is not defined
    ctrlDeleteDir https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:119
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:105
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:164
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:105
    handleKey https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:91
    onKeydown https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:93
    jQuery 8
    saneKeyboardEvents https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:89
    editablesTextareaEvents https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:146
    __mathquillify https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:72
    __mathquillify https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:171
    kind https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:75
    create https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    e https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    d https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    T https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    b https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Be https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Xe https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Er https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Er https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    kr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Re https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    $t https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    qt https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    unstable_runWithPriority https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ha https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    ze https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Qt https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    zr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Dr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Lr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Lr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    au https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    _reactRootContainer https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    ou https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    render https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    e https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    d https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    T https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    b https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    promise callback*r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
[MathQuill.js:119:292](https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js)
    ctrlDeleteDir https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:119
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:105
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:164
    keystroke https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:105
    handleKey https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:91
    onKeydown https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:93
    jQuery 8
    saneKeyboardEvents https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:89
    editablesTextareaEvents https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:146
    __mathquillify https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:72
    __mathquillify https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:171
    kind https://matikkaeditori.fi/3rd-party/mathquill/MathQuill.js:75
    create https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    e https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    d https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    T https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    b https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Be https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Xe https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Er https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Er https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    kr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Re https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ur https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    $t https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    qt https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    unstable_runWithPriority https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Ha https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    ze https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Qt https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    (Async: EventListener.handleEvent)
    zr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Dr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    Lr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    forEach self-hosted:4302
    Lr https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    au https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    _reactRootContainer https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    ou https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    render https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    e https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    d https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    T https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    b https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    (Async: promise callback)
    r https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    l https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    a https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
    <anonymous> https://matikkaeditori.fi/static/js/main.6bd62027.js:1
Esinko commented 3 months ago

This is a MathQuill error and sadly out of our hands :(