I’ve assigned an event to a Key press inside a textbox.
The problem is that this event is a function which is quite time consuming (it’s a search inside a big document).
So when the next key press arrived, the previous event is still running and it collides with the current event which has just started.
So, I’d like to cancel the running of the function linked to the previous key press, to let the current event be processed.
Is it possible?