Skip to content
Discussion options

You must be logged in to vote

I figured this out. I changed all my TextEdits to use .show(ui), and extracted the TextEditOutput, to check if .cursor_range.is_some(). My app now holds a bool, that I or all of these values together to check if any TextEdit are active. I reset the bool to false on every call of update(), and put my shortcut handling behind an if statement at the end of update().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tom-kaufman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants