diff --git a/src/renderer/src/components/terminal-quick-commands/TerminalQuickCommandDialog.tsx b/src/renderer/src/components/terminal-quick-commands/TerminalQuickCommandDialog.tsx index 27d743108a6..6890cbf8876 100644 --- a/src/renderer/src/components/terminal-quick-commands/TerminalQuickCommandDialog.tsx +++ b/src/renderer/src/components/terminal-quick-commands/TerminalQuickCommandDialog.tsx @@ -235,73 +235,76 @@ export function TerminalQuickCommandDialog({ -
{ - if ( - event.defaultPrevented || - !(event.target instanceof Node) || - !event.currentTarget.contains(event.target) - ) { - return - } - if ( - isSelectAllShortcut(event) && - (event.target instanceof HTMLInputElement || - event.target instanceof HTMLTextAreaElement) - ) { - event.preventDefault() - event.stopPropagation() - event.target.select() - return - } - if (isScreenSubmitShortcut(event) && canSave) { - event.preventDefault() - void saveDraft() - } - }} - > -
- -
- - + {/* Why: Chromium won't wheel-scroll an overflowing fieldset, so a plain div owns the overflow. */} +
+
{ + if ( + event.defaultPrevented || + !(event.target instanceof Node) || + !event.currentTarget.contains(event.target) + ) { + return + } + if ( + isSelectAllShortcut(event) && + (event.target instanceof HTMLInputElement || + event.target instanceof HTMLTextAreaElement) + ) { + event.preventDefault() + event.stopPropagation() + event.target.select() + return + } + if (isScreenSubmitShortcut(event) && canSave) { + event.preventDefault() + void saveDraft() + } + }} + > +
+ +
+ + +
-
- + - -
+ + +