diff --git a/frontend/src/screens/HomeScreen.tsx b/frontend/src/screens/HomeScreen.tsx
index f391857..74b6cfd 100644
--- a/frontend/src/screens/HomeScreen.tsx
+++ b/frontend/src/screens/HomeScreen.tsx
@@ -116,11 +116,15 @@ export function HomeScreen({ onNavigate, onCreateProfile }: HomeScreenProps) {
-
+
{state?.profiles.map((profile) => (
- {
+ if (event.key === 'Enter' || event.key === ' ') {
+ event.preventDefault();
+ if ((event.target as HTMLElement).closest('button, a, input')) {
+ return;
+ }
+ void onSelect(profile.npub);
+ }
+ }
+ }
>
{
renderWithApp();
// The active profile row carries the "Selected" badge; find Alice via the profile list.
- const profileList = await screen.findByRole('list');
+ const profileList = await screen.findByRole('listbox');
const aliceRow = within(profileList)
.getByText('Alice')
.closest('.home-profile-row') as HTMLElement;