fix #697 ESC in Textfield resets the input to is previous value in FF

This is a fix for the issue in FF where in autocomplete widget reset input value to previous value because of native behaviour to Esc keypress.