Skip to content

Disable help menu keyboard shortcut when typing and expand terminal on chat focus#129

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/disable-keyboard-shortcut-help
Draft

Disable help menu keyboard shortcut when typing and expand terminal on chat focus#129
Copilot wants to merge 3 commits intomainfrom
copilot/disable-keyboard-shortcut-help

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

Pressing "?" to open help interrupts users typing in Ship AI chat. Terminal size is too constrained for comfortable conversation reading.

Changes

components/ui/HelpButton.tsx

Check active element type before triggering help menu:

if ((e.key === '?' || e.key === 'F1') && !isOpen) {
  const target = e.target as HTMLElement;
  const isTyping = 
    target.tagName === 'INPUT' || 
    target.tagName === 'TEXTAREA' || 
    target.isContentEditable;
  
  if (!isTyping) {
    e.preventDefault();
    setIsOpen(true);
  }
}

components/overlays/TerminalInterface.tsx

Expand terminal dimensions on chat input focus:

const [isChatFocused, setIsChatFocused] = useState(false);

const isExpanded = isChatFocused && viewMode === 'chat';
const terminalWidth = isMobile ? '100%' : isExpanded ? 'min(95vw, 900px)' : 'min(95vw, 600px)';
const terminalHeight = isMobile ? (isExpanded ? '85vh' : '70vh') : (isExpanded ? '80vh' : '65vh');
State Desktop Width Desktop Height Mobile Height
Normal 600px 65vh 70vh
Expanded 900px 80vh 85vh

Transition: 0.3s ease-in-out

Screenshots

Typing "?" no longer opens help menu:
Typing question mark

Terminal expands on chat focus:
Terminal expanded

Terminal returns to normal size on blur:
Terminal normal

Original prompt

disable the keyboard shortcut where ? opens the help menu if the user is typing with the ship AI. Also, when the user focuses on conversation with the ship ai, expand the terminal in a way that makes the text really easy to ready and maximizes the space desktop or mobile.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
next-docs-search Ready Ready Preview, Comment Jan 14, 2026 5:22am

…t focus

Co-authored-by: alexwelcing <13339261+alexwelcing@users.noreply.github.com>
…minal expansion features

Co-authored-by: alexwelcing <13339261+alexwelcing@users.noreply.github.com>
Copilot AI changed the title [WIP] Disable keyboard shortcut for help menu with ship AI Disable help menu keyboard shortcut when typing and expand terminal on chat focus Jan 14, 2026
Copilot AI requested a review from alexwelcing January 14, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants