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

Autocomplete: Trigger search timeout on all input events. Fixes #6666 #275

Merged
merged 1 commit into from
May 18, 2011

Conversation

treyhunner
Copy link
Contributor

This is a follow up to pull request #186.

This change fixes issue #666 (keyboard-autorepeat on Firefox and paste event).

I moved the search timeout used for all generic key presses into its own event binding. This event is then called on keypress and input events. The input event is needed because keydown, keyup, and keypress events are not triggered triggered when pasting text with the mouse.

@jzaefferer
Copy link
Member

Triggering a custom event is an interesting idea, but comes with unnecessary overhead - why not just just add a method to the widget instance and call that instead?

… - keyboard-autorepeat on Firefox and paste event

The input event triggers after all changes to an input field including
paste/cut events.
@treyhunner
Copy link
Contributor Author

Good point. I changed the patch to use a widget method instead of a custom event.

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