possible fix to #1660

modified the tagsinput source to use keypress instead of keydown for the
confirmKeys
This commit is contained in:
barisusakli
2014-06-09 22:44:47 -04:00
parent a40b06c304
commit b9c30aa42d
2 changed files with 508 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ define('composer/tags', function() {
tagEl.tagsinput({
maxTags: config.tagsPerTopic,
confirmKeys: [13, 188]
confirmKeys: [13, 44]
});
addTags(postData.tags, tagEl);
@@ -46,7 +46,7 @@ define('composer/tags', function() {
function triggerEnter(input) {
// http://stackoverflow.com/a/3276819/583363
var e = jQuery.Event('keydown');
var e = jQuery.Event('keypress');
e.which = 13;
e.keyCode = 13;
setTimeout(function() {

File diff suppressed because one or more lines are too long