From 91ad54d17bbf82ae0efa277ceb88f30a3189ce4e Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 14 Oct 2025 14:33:17 +0530 Subject: [PATCH] Fixed an issue where query tool shortcut would trigger the callback twice. #9157 --- pkg/win32/installer.iss.in | 1 + web/pgadmin/static/js/custom_hooks.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/win32/installer.iss.in b/pkg/win32/installer.iss.in index 3238276cf..dac2a78c6 100644 --- a/pkg/win32/installer.iss.in +++ b/pkg/win32/installer.iss.in @@ -38,6 +38,7 @@ WizardImageFile=sidebar.bmp MinVersion={#MinimumWindowsVer} SignTool=pgAdminSigntool SignedUninstaller=yes +CloseApplications=yes [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" diff --git a/web/pgadmin/static/js/custom_hooks.js b/web/pgadmin/static/js/custom_hooks.js index 6492be9db..dae29dfab 100644 --- a/web/pgadmin/static/js/custom_hooks.js +++ b/web/pgadmin/static/js/custom_hooks.js @@ -212,10 +212,8 @@ export function useKeyboardShortcuts(shortcuts, eleRef) { }); }; ele.addEventListener('keydown', dispatch); - ele.addEventListener('keyup', dispatch); return ()=>{ ele.removeEventListener('keydown', dispatch); - ele.removeEventListener('keyup', dispatch); }; }, [eleRef.current]);