summaryrefslogtreecommitdiff
path: root/web/source/settings/views/user/interactions/search.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/source/settings/views/user/interactions/search.tsx')
-rw-r--r--web/source/settings/views/user/interactions/search.tsx23
1 files changed, 13 insertions, 10 deletions
diff --git a/web/source/settings/views/user/interactions/search.tsx b/web/source/settings/views/user/interactions/search.tsx
index b97899c51..5d2da7563 100644
--- a/web/source/settings/views/user/interactions/search.tsx
+++ b/web/source/settings/views/user/interactions/search.tsx
@@ -174,21 +174,24 @@ function ReqsListEntry({ req, linkTo, backLocation }: ReqsListEntryProps) {
const ourContent = useContent(req.status);
const theirContent = useContent(req.reply);
+ const onClick = () => {
+ // When clicking on a request, direct
+ // to the detail view for that request.
+ setLocation(linkTo, {
+ // Store the back location in history so
+ // the detail view can use it to return to
+ // this page (including query parameters).
+ state: { backLocation: backLocation }
+ });
+ };
+
return (
<span
className={`pseudolink entry interaction-request`}
aria-label={label}
title={label}
- onClick={() => {
- // When clicking on a request, direct
- // to the detail view for that request.
- setLocation(linkTo, {
- // Store the back location in history so
- // the detail view can use it to return to
- // this page (including query parameters).
- state: { backLocation: backLocation }
- });
- }}
+ onClick={onClick}
+ onKeyDown={e => e.key === "Enter" && onClick()}
role="link"
tabIndex={0}
>