Skip to content

Commit

Permalink
Add a onKeyDown handler to please sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Apr 3, 2024
1 parent d9ca825 commit 470bafc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ export function ReadmeAndEnvDialog(props: Props) {
<code
className={classes.clusterEvent}
onClick={onOpenClusterEvent}
// NOTE: Only to please SonarCloud
onKeyDown={event => {
if (event.key === "Enter") {
onOpenClusterEvent();
}
}}
>
{lastClusterEvent.message}
</code>
Expand Down

0 comments on commit 470bafc

Please sign in to comment.