closing result tags popup with escape

This commit is contained in:
Miodec 2023-03-08 15:49:23 +01:00
parent 6a6d475e51
commit af2677a338

View file

@ -241,4 +241,11 @@ $("#resultEditTagsPanelWrapper .confirmButton").on("click", async () => {
}
});
$(document).on("keydown", (event) => {
if (event.key === "Escape" && isPopupVisible(wrapperId)) {
hide();
event.preventDefault();
}
});
Skeleton.save(wrapperId);