desmosinc / mathquill

Magic textboxes where you can type math as easily as writing!
mathquill.com
137 stars 42 forks source link

select left-to-right the entire token when you click it #262

Closed mikehaverstock closed 1 year ago

mikehaverstock commented 1 year ago

We used to ignore clicks on tokens so that we could allow external code handle the clicks. But we've changed our mind. We want the cursor to be inserted when you mouse down on a token. And if you mouse up on that same token (so clicking it), we want to automatically select the entire token. So a single delete will always delete the token.