Added hook on paste event to search for the pasted input.

Added support for paste event that didn't work on Mac OSX (it worked with Windows and Linux though). Now it works on every OS.
To follow a little bit what happens before, why not adding method .paste in the searchfield?