From 6221502adc830b59142bd0abbcd98a775230a9eb Mon Sep 17 00:00:00 2001 From: JianFeeeee <109188060+JianFeeeee@users.noreply.github.com> Date: Tue, 11 Aug 2026 00:15:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20right-click=20ctx=20menu=20never=20close?= =?UTF-8?q?s=20=E2=80=94=20showCtx=20appended=20the=20menu=20but=20never?= =?UTF-8?q?=20stored=20it=20in=20ctxEl,=20so=20hideCtx=20(item=20click=20/?= =?UTF-8?q?=20outside=20press)=20was=20always=20a=20no-op;=20priority=20pa?= =?UTF-8?q?ge=20and=20keys=20page=20affected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gateway/ui/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/gateway/ui/index.html b/internal/gateway/ui/index.html index 8a2c0af..abfc5a8 100644 --- a/internal/gateway/ui/index.html +++ b/internal/gateway/ui/index.html @@ -2020,6 +2020,7 @@ function showCtx(x, y, items) { const it = items[+t.dataset.i]; hideCtx(); if (it) it.fn(); }); document.body.appendChild(w); + ctxEl = w; const r = w.getBoundingClientRect(); w.style.left = Math.max(6, Math.min(x, window.innerWidth - r.width - 6)) + 'px'; w.style.top = Math.max(6, Math.min(y, window.innerHeight - r.height - 6)) + 'px';