From a98661735fb00f2c16bd9463a352b4fbce8d0be2 Mon Sep 17 00:00:00 2001 From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com> Date: Thu, 12 Jun 2025 09:47:17 -0400 Subject: [PATCH] feat: Add New Keyboard Shortcuts with asterisk and tooltip to imply situational --- src/lib/components/chat/ShortcutsModal.svelte | 64 ++++++++++++++++++- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/ShortcutsModal.svelte b/src/lib/components/chat/ShortcutsModal.svelte index 05fb549f9..ea82beefc 100644 --- a/src/lib/components/chat/ShortcutsModal.svelte +++ b/src/lib/components/chat/ShortcutsModal.svelte @@ -2,6 +2,7 @@ import { getContext } from 'svelte'; import Modal from '../common/Modal.svelte'; + import Tooltip from '../common/Tooltip.svelte'; const i18n = getContext('i18n'); export let show = false; @@ -75,6 +76,26 @@ +
+
+ + {$i18n.t('Stop Generating')} * + +
+ +
+
+ Esc +
+
+
+
{$i18n.t('Copy last code block')}
@@ -123,6 +144,40 @@
+
+
+ + {$i18n.t('Prevent file creation')} * + +
+ +
+
+ Ctrl/⌘ +
+ +
+ Shift +
+ +
+ V +
+
+
+ + +
{$i18n.t('Generate prompt pair')}
@@ -146,9 +201,7 @@
- -
{$i18n.t('Toggle search')}
@@ -251,8 +304,13 @@
+
+ {$i18n.t( + 'Shortcuts with an asterisk (*) are situational and only active under specific conditions.' + )} +
-
{$i18n.t('Input commands')}
+
{$i18n.t('Chat Input commands')}