Fixed: Esc key propagation stopped by implied return

https://github.com/harvesthq/chosen/issues/390
This commit is contained in:
Mike Frey 2011-12-09 16:39:35 -06:00
parent 880a30dcb4
commit a316ca88d6

View file

@ -91,6 +91,7 @@ class AbstractChosen
this.result_select(evt) if this.results_showing this.result_select(evt) if this.results_showing
when 27 when 27
this.results_hide() if @results_showing this.results_hide() if @results_showing
return true
when 9, 38, 40, 16, 91, 17 when 9, 38, 40, 16, 91, 17
# don't do anything on these keys # don't do anything on these keys
else this.results_search() else this.results_search()