Missing plonk and moveOutOf in fractions
See original GitHub issueDescription
When the caret is at the top of a fraction and you press up, no “plonk” sound gets triggered
(Beautiful arrow added using paint)
Steps to Reproduce
- Go to https://cortexjs.io/mathlive/
- Put the caret at the top of the fraction
- Press the
up
arrow key
Actual Behavior
Nothing happens
Expected Behavior
I expected a plonk sound and a moveOutOf
event
Environment
MathLive version v0.67.0
Operating System Windows 10
Browser Firefox 88 and Microsoft Edge
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Solving for the missing fraction - YouTube
Multiplying two fractions : example | Fractions | Pre-Algebra | Khan Academy · Best FRACTION Hack EVER! · Mr. · Find the Missing...
Read more >Equations With Missing Fractions - YouTube
Learn how to find the missing fraction in an equation.
Read more >Simplifying fractions with missing numerators and ... - YouTube
This video is a short and simplified video that teaches children fractions. The skill in this case is simplifying fractions with missing ......
Read more >Solving for the missing fraction (video) - Khan Academy
If there are two missing fractions, then generally you will need to be given a second equation in order to have enough information...
Read more >Equation with variables on both sides: fractions - Khan Academy
The general rule for solving equations with fractions — whether it be ... You can multiply both sides with the denominator in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, that makes sense. Same thing with a regular textfield: tab changes focus, but arrow keys don’t.
I’m going to add a
move-out
event that will be triggered only by the arrow keys and keep thefocus-out
for the tab key. Themove-out
event willplonk
by default if not handled.Would you find it useful to have a way to “tab to the next focusable element” or can you already easily figure that out in your
move-out
handler?Right, I was thinking that the
mouveOutOf
hook at the top level of the equation made sense, but not “inside”, but you’ve convinced me, that does feel like that could work. So, call themoveOutOf
hook to (potentially) shift the focus to something else, and if not handled,plonk
.