|
|
@ -356,11 +356,15 @@ define([
|
|
|
|
var $cancel = findCancelButton(tagger).click(function (e) {
|
|
|
|
var $cancel = findCancelButton(tagger).click(function (e) {
|
|
|
|
close(null, e);
|
|
|
|
close(null, e);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
listener = listenForKeys(function () {
|
|
|
|
$(tagger).on('keydown', function (e) {
|
|
|
|
$ok.click();
|
|
|
|
if (e.which === 27) {
|
|
|
|
}, function () {
|
|
|
|
$cancel.click();
|
|
|
|
$cancel.click();
|
|
|
|
return;
|
|
|
|
}, tagger);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (e.which === 13) {
|
|
|
|
|
|
|
|
$ok.click();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(tagger).on('click submit', function (e) {
|
|
|
|
$(tagger).on('click submit', function (e) {
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|