Remove unused code

Keyup event handler on a textarea element cannot catch ESC key
events.
Code cleaning
Rename disable api as destroy
Prevent showing a dropdown when it just autocompleted