-
QuestionHow would you detect when user selects text on the page? Say user highlights text with mouse, now nicegui needs to do something with it. If user triggers another action (keypress, button, etc) then it's fairly straightforward. Just call But what if user doesn't perform another action? I don't see any events in nicegui or MDN to detect it. BTW - urls to MDN and Quasar here should be clickable links. Right now just plain text. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is the I made the links clickable on main. Will be updated with the upcoming release. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Nicegui docs only links to element events. Should add a link to document events too. |
Beta Was this translation helpful? Give feedback.
There is the
selectionchanged
event: https://developer.mozilla.org/en-US/docs/Web/API/Document/selectionchange_eventI made the links clickable on main. Will be updated with the upcoming release.