File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
apps/code/src/renderer/components/action-selector Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ export function ActionSelector({
118118 if ( showInlineEdit || document . activeElement ?. tagName === "TEXTAREA" )
119119 return ;
120120
121+ const container = containerRef . current ;
122+ if ( container && ! container . contains ( document . activeElement ) ) return ;
123+
121124 switch ( e . key ) {
122125 case "ArrowUp" :
123126 e . preventDefault ( ) ;
@@ -186,7 +189,7 @@ export function ActionSelector({
186189 document . addEventListener ( "keydown" , handler , { capture : true } ) ;
187190 return ( ) =>
188191 document . removeEventListener ( "keydown" , handler , { capture : true } ) ;
189- } , [ ] ) ;
192+ } , [ containerRef . current ] ) ;
190193
191194 const getSubmitLabel = ( ) => {
192195 return hasSteps && activeStep < numSteps - 1 ? "Next" : "Submit" ;
You can’t perform that action at this time.
0 commit comments