Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: double and triple clicking should select in MathQuills #242

Open
jwmerrill opened this issue Mar 7, 2022 · 0 comments
Open

Comments

@jwmerrill
Copy link
Member

In (most?) browsers, double clicking a word selects it, and triple clicking selects an entire paragraph.

In MathQuill, double and triple clicking currently do nothing, as far as I can tell.

Proposal:

  • Double clicking should select the least "math block" ancestor. This would be roughly similar to e.g. Shift-End from the keyboard, but would select an entire block instead of just the part of it that is to the right of the cursor
    case 'Shift-End':
    ctrlr.selectToBlockEndInDir(R);
    break;
  • Triple clicking should select all in the current mathquill

This feature request is somewhat important to Desmos because Desmos had previously disabled mouse events on static mathquills, which allowed the user to get native selection behavior on static mathquills and in particular, allowed them to double or triple click on static mathquills used to display calculator expression evaluations.

Desmos is now using MQ's mouse events on static mathquills, which is an improvement in some ways, but turns out to be a regression in terms of double and triple click behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant