Fix tag prompt shortcuts

pull/1/head
yflory 5 years ago
parent 3f75b299a0
commit fd4e1b9849

@ -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();

Loading…
Cancel
Save