Skip to content

Commit

Permalink
Don't open up chosen on option keyup.
Browse files Browse the repository at this point in the history
When embedding chosen in a chrome extension, the keyboard shortcut
includes the option key. If a chosen instance happens to be focused at the
time, releasing the option key opens it, but shouldn't.
  • Loading branch information
braddunbar committed Nov 10, 2015
1 parent 8816852 commit d21fd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class AbstractChosen
when 27
this.results_hide() if @results_showing
return true
when 9, 38, 40, 16, 91, 17
when 9, 38, 40, 16, 91, 17, 18
# don't do anything on these keys
else this.results_search()

Expand Down

0 comments on commit d21fd15

Please sign in to comment.