Refactor delay validation in editor.
Moved implementation to onValueChange method to handle both keydown and mouse paste event.