-
Hi every one, I am developing an instant messaging application, and in order to implement the "@" mention feature in group chats, I need to display a dropdown list of people at the cursor position when the user types the "@" character in the input box. I have searched through all the documentation, but I couldn't find an API to get the current cursor position in the input box. How can I implement this functionality? thank's a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You can use .CursorRow and .CursorColumn on your entry object. |
Beta Was this translation helpful? Give feedback.
-
@Jacalz Thank you for replay, in my case i need to show the popup window at the cursor position, how can i convert entry.CursorRow and entry.CursorColumn to a fyne.Position or any other method to get the absolute position of the cursor? i have tried this piece of code, but not work:
where did I go wrong? |
Beta Was this translation helpful? Give feedback.
@dweymouth I create it at #4382
Thanks for all the help.