From 2096f971cd57a2a1d5d8fb5438be1ea77b01f3c6 Mon Sep 17 00:00:00 2001
From: Devansh <sharmadevansh007777@gmail.com>
Date: Mon, 30 Jun 2025 01:16:14 +0200
Subject: fix:Update /help to show correct newline key combo for different OS
 #… (#2043)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Allen Hutchison <adh@google.com>
---
 packages/cli/src/ui/components/Help.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'packages/cli/src/ui/components/Help.tsx')

diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx
index 8e1fd09e..d56f0959 100644
--- a/packages/cli/src/ui/components/Help.tsx
+++ b/packages/cli/src/ui/components/Help.tsx
@@ -97,9 +97,11 @@ export const Help: React.FC<Help> = ({ commands }) => (
     </Text>
     <Text color={Colors.Foreground}>
       <Text bold color={Colors.AccentPurple}>
-        Shift+Enter
+        {process.platform === 'win32' ? 'Ctrl+Enter' : 'Ctrl+J'}
       </Text>{' '}
-      - New line
+      {process.platform === 'linux'
+        ? '- New line (Alt+Enter works for certain linux distros)'
+        : '- New line'}
     </Text>
     <Text color={Colors.Foreground}>
       <Text bold color={Colors.AccentPurple}>
-- 
cgit v1.2.3

