mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Placeholders shouldn't be deletable

Open bengolds opened this issue 3 years ago • 1 comments

Description

If you type in a function that has a placeholder in it, you shouldn't be able to delete the placeholder; you should only be able to type over it. Similarly, if the contents of a function that takes placeholders are deleted, it should return to having a placeholder instead of being empty.

I'd expect this to be default behavior, but having it as an option would also be reasonable.

With placeholders:

CleanShot 2022-02-15 at 10 46 38@2x

Placeholders deleted (looks confusing):

CleanShot 2022-02-15 at 10 46 46@2x

Steps to Reproduce

  1. Press the division key or square root key on the default virtual keyboard.
  2. Press delete to delete the selected placeholder.

Actual Behavior

The placeholder is deleted, leaving a blank space (or a weird-looking square root symbol for square root).

Expected Behavior

The placeholder stays put until typed over.

Environment

MathLive version: 0.69.8

bengolds avatar Feb 15 '22 18:02 bengolds

To add to this, when you replace the placeholders in the MathLive testing playground matrix, the latex becomes {<input>} which creates an invisible depth to the input. image

manstie avatar Mar 14 '22 13:03 manstie