possible fix to #1660

modified the tagsinput source to use keypress instead of keydown for the
confirmKeys
v1.18.x
barisusakli 11 years ago
parent a40b06c304
commit b9c30aa42d

@ -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
Loading…
Cancel
Save