added on-key-type event for search