summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-14 11:01:06 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-14 11:01:06 -0700
commita16101b49950fba146e8627ffbce3a34e61bb061 (patch)
tree86ff2fa00c2ff145a37317734b1253cb3975e1df /extension/react-app/src/components
parent612c4115a0c74b52b77956867e0f47a84eca98a9 (diff)
downloadsncontinue-a16101b49950fba146e8627ffbce3a34e61bb061.tar.gz
sncontinue-a16101b49950fba146e8627ffbce3a34e61bb061.tar.bz2
sncontinue-a16101b49950fba146e8627ffbce3a34e61bb061.zip
command m reliable toggle
Diffstat (limited to 'extension/react-app/src/components')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index bd0d59b5..5d9b5109 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -12,6 +12,7 @@ import PillButton from "./PillButton";
import HeaderButtonWithText from "./HeaderButtonWithText";
import { DocumentPlus } from "@styled-icons/heroicons-outline";
import { HighlightedRangeContext } from "../../../schema/FullState";
+import { postVscMessage } from "../vscode";
// #region styled components
const mainInputFontSize = 13;
@@ -297,6 +298,9 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
// setShowContextDropdown(target.value.endsWith("@"));
},
+ onBlur: (e) => {
+ postVscMessage("blurContinueInput", {});
+ },
onKeyDown: (event) => {
if (event.key === "Enter" && event.shiftKey) {
// Prevent Downshift's default 'Enter' behavior.