diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx index 8c41b53d7..ef789645b 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx @@ -629,24 +629,39 @@ export const SecretDetailSidebar = ({ > {secretValue} - { e.stopPropagation(); e.currentTarget.closest('.group')?.classList.remove('show-value'); }} - /> + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.stopPropagation(); + e.currentTarget.closest('.group')?.classList.remove('show-value'); + } + }} + > + + {secretValue?.replace(/./g, '*')} - { e.currentTarget.closest('.group')?.classList.add('show-value'); }} - /> + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.currentTarget.closest('.group')?.classList.add('show-value'); + } + }} + > + +