diff --git a/html/channel.ejs b/html/channel.ejs
index 2a10cd13..a2f39b52 100644
--- a/html/channel.ejs
+++ b/html/channel.ejs
@@ -1678,6 +1678,12 @@ document.getElementById('search').addEventListener('keyup', function () {
event.preventDefault();
togglePopup();
});
+
+ document.addEventListener('keydown', function (event) {
+ if (event.key === 'Escape' && isPopupOpen) {
+ closePopup();
+ }
+ });
// @license-end