diff --git a/src/meshcore_hub/web/static/js/spa/pages/channels.js b/src/meshcore_hub/web/static/js/spa/pages/channels.js index e9b93ea..f51f6f0 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/channels.js +++ b/src/meshcore_hub/web/static/js/spa/pages/channels.js @@ -37,7 +37,9 @@ function renderChannelCard(channel, { oidcEnabled, isAdmin, onDelete, onEdit, on ? html`
` : nothing; - return html`
onNavigate(channelIdx)}> + return html`
onNavigate(channelIdx)} + @keydown=${(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onNavigate(channelIdx); } }}>

diff --git a/src/meshcore_hub/web/static/js/spa/pages/members.js b/src/meshcore_hub/web/static/js/spa/pages/members.js index 999790a..9ca8878 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/members.js +++ b/src/meshcore_hub/web/static/js/spa/pages/members.js @@ -25,7 +25,9 @@ function renderProfileTile(profile, router) { e.stopPropagation(); router.navigate('/nodes/' + node.public_key); }; - return html`${label}`; + return html` { if (e.key === 'Enter' || e.key === ' ') handleClick(e); }}>${label}`; })}

` : nothing; @@ -33,8 +35,11 @@ function renderProfileTile(profile, router) { ? html`

${profile.description}

` : nothing; + const openUrl = (e) => { e.preventDefault(); e.stopPropagation(); window.open(profile.url, '_blank', 'noopener,noreferrer'); }; const urlLink = profile.url - ? html` { e.preventDefault(); e.stopPropagation(); window.open(profile.url, '_blank', 'noopener,noreferrer'); }}>${profile.url}` + ? html` { if (e.key === 'Enter') openUrl(e); }}>${profile.url}` : nothing; return html`