ghostinpeace
ghostinpeace

Reputation: 83

Is the 'input' event always queued before knowing whether its handler will actually be called?

I have some code to be run:

I noticed that queuing a message with setTimeout in the keydown handler works well.

In this demo, the logged sequence is the one we expect:

So it seems to me that the input event is queued before the keydown event is processed, when we don't really know yet whether there will actually be an input. It's just what I need, but how can I be sure things are actually supposed to be implemented this way?

Upvotes: 0

Views: 80

Answers (0)

Related Questions