emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

pressing Enter moves away focus from tags entering field #18

Closed HongKilDong closed 13 years ago

HongKilDong commented 14 years ago

After updating I encounter such a problem - ending each tag by pressing Enter, focus moves away from tags entering field so I need click this field by mouse each time before typing new tag

steve-obrien commented 13 years ago

A little bit of a hack on my part but have solved this by adding $('#tags_annoninput .maininput').focus(); just after line 466 (non minified version)

HongKilDong commented 13 years ago

It works, but only in case of typing complete tag by keyboard and doesn't work in case of selecting tag from dropdown list. Can you suggest the line where to put this code in to focusing in case of selecting tag from dropdown list?

steve-obrien commented 13 years ago

If you pull my latest changes I have sorted this. I merged with zeroasterisk who made it a bit smarter by adding options so you can choose if you want it to focus or not. Default is true. The "keepPromptAfterChoose" is true by default so it will refocus after a tag is created also after selecting it from the pull down. I have put the details of the options in the file

HongKilDong commented 13 years ago

Wow! I've checked your forked version - it's really great! Thanks for that!

steve-obrien commented 13 years ago

no problem :-)

victormartins commented 13 years ago

Awesome work emposha and thanks for the fix steve! This was a huge help for me today :)

HongKilDong commented 13 years ago

2 steve-newicon: Bug in fcbk 2.7.6: http://github.com/emposha/FCBKcomplete/issues/issue/23

emposha commented 13 years ago

fixed

HongKilDong commented 13 years ago

Thx, I'll try it ;)