Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@

// When enabled, quotes are unneccesary for inputting multi-word tags.
allowSpaces: false,
// When enabled, comma key won't trigger completion of a tag
allowCommas: false,

// The below options are for using a single field instead of several
// for our form values.
Expand Down Expand Up @@ -241,7 +243,7 @@
// Tab will also create a tag, unless the tag input is empty,
// in which case it isn't caught.
if (
(event.which === $.ui.keyCode.COMMA && event.shiftKey === false) ||
((event.which === $.ui.keyCode.COMMA && that.options.allowCommas == false) && event.shiftKey === false) ||
event.which === $.ui.keyCode.ENTER ||
(
event.which == $.ui.keyCode.TAB &&
Expand Down