fix defect MAGN-217: Delete key is not working for deleting text from search field.

Add the event handler to handle the delete key event. If there is node selecting, the delete key will delete the node. If not, the delete key will delete the text from the search field.
[MAGN-217](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-217)