mathlive
mathlive copied to clipboard
Unintuitive Fraction Focus Behavior
Description
The fraction focus behaviour is quite unintuitive, see the little movie below:
https://user-images.githubusercontent.com/8543370/131054570-bcd3a2b5-3a3e-4b64-ab3c-e1dfe98ee49e.mp4
Steps to Reproduce
The key sequence was
- 1
- /
- /
- backspace
- backspace
- ...
Expected Behavior
I would expect backspacing inside a fraction to select the outer fraction, instead of putting the caret in front of the fraction as it currently does. Just for reference, here's mathquills behavior with the same key sequence
https://user-images.githubusercontent.com/8543370/131055007-184904f2-92ef-41aa-82ef-e40d4ca93a0d.mp4
I disagree with this suggestion. Backspace moves the insertion point, deleting any selection. I'm not aware of (text) editing situations where backspace ends up selecting something. Doing that in math is counter-intuitive based on existing expectations.
On Thu, Aug 26, 2021 at 5:57 PM theChosenOne @.***> wrote:
Description
The fraction focus behaviour is quite unintuitive, see the little movie below:
https://user-images.githubusercontent.com/8543370/131054570-bcd3a2b5-3a3e-4b64-ab3c-e1dfe98ee49e.mp4 Steps to Reproduce
The key sequence was
- 1
- /
- /
- backspace
- backspace
- ...
Expected Behavior
I would expect backspacing inside a fraction to select the outer fraction, instead of putting the caret in front of the fraction as it currently does
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arnog/mathlive/issues/1150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALZM3DLWR36R2ZZ5B24P7TT63PHZANCNFSM5C4PXA3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Sorry I should clarify, I don't mean that it should select anything, I mean that backspacing should effectively undo any action you do. The behaviour I'd expect is the behaviour mathquill has implemented. This seems to be the behavior on every math editor I've used in the past too. I tried quite aa few.
+1 for this. This happens only with an empty fraction. It only removes the upper placeholder, not the whole fraction.
I agree with this. In the simplest case you write "5" then "/" then "backspace" it should undo the fraction and leave with plain "5". If a person types an errant fraction, there is no way to delete the fraction without deleting the numerator as well.
The behavior when deleting an empty numerator/denominator now matches the behavior of the Desmos graphing calculator.