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

AutocompleteCombobox has bug when type very quickly. #102

Open
hachi1030-Allen opened this issue Jul 7, 2023 · 0 comments
Open

AutocompleteCombobox has bug when type very quickly. #102

hachi1030-Allen opened this issue Jul 7, 2023 · 0 comments

Comments

@hachi1030-Allen
Copy link

I am testing with the AutocompleteCombobox from ttkwidgets, and I found that this part might have the bug.

 # now finally perform the auto completion
if self._hits:
    self.delete(0, tk.END)
    self.insert(0, self._hits[self._hit_index])
    self.select_range(self.position, tk.END)

What I tested is that when I type very fast, the self.position sometimes will just jump from let's say 7 to 16.
And then the symtom is that my cursor is already in the end of the auto completed string and whatever I type will be wrongly append to it.

What I want is that no matter how we type, unless we press Enter or right arrow key, it should always kind of "hinting" you what is the current hits.

Can you check whether this is a bug or whether it's something we can workaround?

I really need to use this Auto complete feature but no with this bug.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant