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:
parent
c4952705c3
commit
44a4353fcf
@ -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 = $ @
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user