1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix autocomplete cycling in Google Chrome

This commit is contained in:
Tim Düsterhus 2014-08-02 21:40:38 +02:00
parent c4952705c3
commit 44a4353fcf

View File

@ -229,7 +229,10 @@ Autocomplete a username when TAB is pressed. The name to autocomplete is based o
The the word the caret is in will be passed to `autocomplete` and replaced if a match was found. The the word the caret is in will be passed to `autocomplete` and replaced if a match was found.
$('#timsChatInput').keydown (event) -> $('#timsChatInput').keydown (event) ->
if event.keyCode is $.ui.keyCode.TAB switch event.keyCode
when 229
return
when $.ui.keyCode.TAB
do event.preventDefault do event.preventDefault
input = $ @ input = $ @