Replies: 2 comments
-
|
I opened a PR implementing your requested feature: #5725 |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thanks for that. After reading #5725, I have a couple of questions. First, if I do a ctrl-f in that page, I find the word 'selection' over 50 times and the word 'positon' only 4 times; so, I am hesitant the issue is about what I am looking for? Second, and just out of curiosity and triggered by my own pickiness about using the right names; I noticed the word 'caret' as part of the title and also its mention another 10 times...but, according to me, caret is this character: ^, which does not typically show up in any textfield; if anything, the cursor is represented with a blinking under-score '_' or a vertical bar '|'. Thanks, again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
As an excuse to learn Flet, I am writing a word-guessing game, of course.
Following similar approach as the Calculator in the Flet Tutorial docs, I implemented a TextField and an on-screen keyboard. Every time the user types a key button, I append that character to the TextField.value.
That's fine.
If there is a typo, the user can place the cursor in the middle of the word in the TextField, but upon pressing the key, the callback function does its thing and simply appends the "inserted" character at the end of the word.
Is there a way to know what the position is the cursor is/was when I receive a character so that I can insert where intended?
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions