From 470bafc445f9366515d13dcae5f11798c0023f3e Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Wed, 3 Apr 2024 13:57:25 +0200 Subject: [PATCH] Add a onKeyDown handler to please sonarcloud --- .../ReadmeAndEnvDialog/ReadmeAndEnvDialog.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/ui/pages/myServices/MyServicesCards/MyServicesCard/ReadmeAndEnvDialog/ReadmeAndEnvDialog.tsx b/web/src/ui/pages/myServices/MyServicesCards/MyServicesCard/ReadmeAndEnvDialog/ReadmeAndEnvDialog.tsx index 13a3d6200..6af7c88a0 100644 --- a/web/src/ui/pages/myServices/MyServicesCards/MyServicesCard/ReadmeAndEnvDialog/ReadmeAndEnvDialog.tsx +++ b/web/src/ui/pages/myServices/MyServicesCards/MyServicesCard/ReadmeAndEnvDialog/ReadmeAndEnvDialog.tsx @@ -170,6 +170,12 @@ export function ReadmeAndEnvDialog(props: Props) { { + if (event.key === "Enter") { + onOpenClusterEvent(); + } + }} > {lastClusterEvent.message}