We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb78920 commit ca43354Copy full SHA for ca43354
1 file changed
apps/code/src/renderer/components/action-selector/ActionSelector.tsx
@@ -118,6 +118,9 @@ export function ActionSelector({
118
if (showInlineEdit || document.activeElement?.tagName === "TEXTAREA")
119
return;
120
121
+ const container = containerRef.current;
122
+ if (container && !container.contains(document.activeElement)) return;
123
+
124
switch (e.key) {
125
case "ArrowUp":
126
e.preventDefault();
@@ -186,7 +189,7 @@ export function ActionSelector({
186
189
document.addEventListener("keydown", handler, { capture: true });
187
190
return () =>
188
191
document.removeEventListener("keydown", handler, { capture: true });
- }, []);
192
+ }, [containerRef.current]);
193
194
const getSubmitLabel = () => {
195
return hasSteps && activeStep < numSteps - 1 ? "Next" : "Submit";
0 commit comments