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

trouble with use of .cmd() because of selection cleared on blur #23

Open
michel2bec opened this issue Dec 18, 2015 · 0 comments
Open

trouble with use of .cmd() because of selection cleared on blur #23

michel2bec opened this issue Dec 18, 2015 · 0 comments

Comments

@michel2bec
Copy link

Great fork of mathquill, really improved.

Now my little problem :

if I add a button to issue : MathQuill.MathField($('#zoneEditable')[0]).cmd('\sqrt')
on a mathquill field with some selected text, it won't work as expected (put a square root around the selected text) because clicking the button causes blur() on the mathquill field which does cursor.clearSelection(); in Controller.focusBlurEvents (in blurTimeout).

This makes the cmd interface a lot less usefull.

(for my personnal use case I just commented out cursor.clearSelection(); : as I don't really know what was initially intended with this cursor.clearSelection(); action, I won't submit a patch)

kschaefe pushed a commit that referenced this issue Sep 27, 2023
ans should be an operatorname.
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