From 44be7afff24099200d21e9a7a20eccd085369216 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Wed, 8 Jul 2026 15:39:32 +0200 Subject: [PATCH] fix(App): close context menu on right-click event This change ensures that the repository tab context menu is closed when the user right-clicks anywhere in the window. This improves the user experience by preventing the context menu from remaining open unintentionally. - Added functionality to close the context menu on right-click. - Updated event handling for context menu to use capture phase. --- src/App.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index ec2ff12..9735a72 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -2801,6 +2801,7 @@ function handleWindowContextMenu(event: MouseEvent) { event.preventDefault(); + if (repoTabContextMenu) closeRepoTabContextMenu(); } function handleWindowClick() { @@ -2812,7 +2813,7 @@ GitLite - +