summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-11 14:13:14 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-11 14:13:14 -0700
commit3ca5c52e83f27bc1cda1b3f696dc86296ada2370 (patch)
treed8343c3c401c39fa0f829695552a4f6d777913de /extension/react-app/src/components
parentf52f108e971b590f80bbf0806f30b0ebf60e139c (diff)
downloadsncontinue-3ca5c52e83f27bc1cda1b3f696dc86296ada2370.tar.gz
sncontinue-3ca5c52e83f27bc1cda1b3f696dc86296ada2370.tar.bz2
sncontinue-3ca5c52e83f27bc1cda1b3f696dc86296ada2370.zip
little ui stuff
Diffstat (limited to 'extension/react-app/src/components')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 585a0584..ac994b0a 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -378,7 +378,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
</Ul>
</div>
{highlightedCodeSections.length === 0 &&
- (downshiftProps.inputValue?.startsWith("/edit") || metaKeyPressed) && (
+ (downshiftProps.inputValue?.startsWith("/edit") ||
+ (metaKeyPressed && downshiftProps.inputValue?.length > 0)) && (
<div className="text-trueGray-400 pr-4 text-xs text-right">
Inserting at cursor
</div>