arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.59k stars 280 forks source link

A placeholder does not recognize function name when not typed in one go #2536

Open langit opened 1 month ago

langit commented 1 month ago

Description

A placeholder does not recognize a function name when not typed in one go.

Steps to Reproduce

Type in 'ex' into an empty placeholder, then jump to another placeholder and come back to it, and type in the last character 'p'. It won't recognize the input as the function 'exp', instead, it is just three variables e, x, and p.

Expected Behavior

It should recognize the input as the function 'exp'.

Environment

MathLive version: 0.101.1

Operating System Windows 11

Browser Chrome, Edge.

arnog commented 1 month ago

This is not specific to placeholders. For an inline shortcut to be recognized, it must be entered consecutively.