question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing plonk and moveOutOf in fractions

See original GitHub issue

Description

When the caret is at the top of a fraction and you press up, no “plonk” sound gets triggered

image

(Beautiful arrow added using paint)

Steps to Reproduce

  1. Go to https://cortexjs.io/mathlive/
  2. Put the caret at the top of the fraction
  3. 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:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
arnogcommented, May 28, 2021

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 the focus-out for the tab key. The move-out event will plonk 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?

1reaction
arnogcommented, May 28, 2021

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 the moveOutOf hook to (potentially) shift the focus to something else, and if not handled, plonk.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found