diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-11 14:13:14 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-11 14:13:14 -0700 |
commit | 3fc16804fe74c38d4f94c25281025a84fd51771b (patch) | |
tree | bb506427dc5143139722bf7784b51ccafb187aa2 /extension/react-app/src/components/ComboBox.tsx | |
parent | ea76462f971d6d235baacbb85d6e9ae6fe09d7e0 (diff) | |
download | sncontinue-3fc16804fe74c38d4f94c25281025a84fd51771b.tar.gz sncontinue-3fc16804fe74c38d4f94c25281025a84fd51771b.tar.bz2 sncontinue-3fc16804fe74c38d4f94c25281025a84fd51771b.zip |
little ui stuff
Diffstat (limited to 'extension/react-app/src/components/ComboBox.tsx')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 3 |
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> |