Skip to content

AutocompleteCombobox has bug when type very quickly. #102

@hachi1030-Allen

Description

@hachi1030-Allen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions