mathlive
mathlive copied to clipboard
Cannot toggle font style such as roman
Steps to Reproduce
- Run this
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Change FontShape of MathField</title>
<script defer src="https://unpkg.com/mathlive"></script>
</head>
<body>
<math-field>\mathrm{111}</math-field>
</body>
</html>
- Use the right arrow
Expected Behavior
Using the right arrow key enough times leads to leaving \mathrm mode, similar to moving out of an exponent
Actual Behavior
The arrow keys do not leave mathrm mode. The only way to leave is to delete the mathrm text.
Environment
0.1000.0
Roman, Italic, etc... are not modes, they are attributes applied to the content.
However, it is true that there isn't an easy way to stop applying this style. What should happen is that the current style (roman) should be reflected in the Font Style menu, and should be togglable.