Merge pull request #480 from chriswritescode-dev/fix/shortcut-missing-key

fix(frontend): ignore keyless key events and stop composer autocorrect
This commit is contained in:
Chris Scott authored and GitHub committed 2026-11-06 10:20:11 -05:00
commit c6c13335e5
4 files changed
+19 -1

No files matched your search

@@ -642,6 +642,10 @@ describe('PromptInput command submission', () => {
renderComponent()
const input = await screen.findByPlaceholderText('Send a message...')
expect(input).toHaveAttribute('autocomplete', 'off')
expect(input).toHaveAttribute('autocorrect', 'off')
expect(input).toHaveAttribute('autocapitalize', 'off')
expect(input).toHaveAttribute('spellcheck', 'false')
fireEvent.focus(input)
fireEvent.change(input, { target: { value: 'text' } })
expect(screen.getByRole('button', { name: 'bash !' })).toBeDisabled()
@@ -654,6 +658,9 @@ describe('PromptInput command submission', () => {
expect(input).toHaveValue('!')
expect(screen.getByTestId('composer-mode-badge')).toHaveTextContent('BASH')
expect(screen.getByRole('button', { name: 'cmd /' })).toBeDisabled()
expect(input).toHaveAttribute('autocorrect', 'off')
expect(input).toHaveAttribute('autocapitalize', 'off')
expect(input).toHaveAttribute('spellcheck', 'false')
fireEvent.click(screen.getByRole('button', { name: 'bash !' }))
expect(input).toHaveValue('')
@@ -1280,6 +1280,10 @@ return (
onDragOver={handleDragOver}
onDragLeave={handleDragLeave}
onDrop={handleDrop}
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck={false}
placeholder={
isBashMode
? "Enter bash command..."