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

Support double and triple click for highlighting text #43

Closed
CosmicHorrorDev opened this issue Sep 11, 2022 · 1 comment · Fixed by #295
Closed

Support double and triple click for highlighting text #43

CosmicHorrorDev opened this issue Sep 11, 2022 · 1 comment · Fixed by #295
Labels
C-enhancement Category: New feature or request

Comments

@CosmicHorrorDev
Copy link
Collaborator

Currently text highlighting only works by dragging a selection. It would be nice to support double and triple click to handle selecting the hovered word and line respectively

@trimental
Copy link
Collaborator

This would be a nice feature. The only thing is that wgpu glyph controls the layout of text almost entirely. It has its own rules on when to make a new line etc, so the triple click might be harder to implement.

I suppose for the double click it'll be a case of searching forwards and backwards from the closest glyph to the cursor for whitespace characters and selecting in-between.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants