Skip to content

fix: allow Option+Backspace word-delete in input fields#89

Merged
nwparker merged 1 commit intomainfrom
fix/option-backspace-in-inputs
Mar 25, 2026
Merged

fix: allow Option+Backspace word-delete in input fields#89
nwparker merged 1 commit intomainfrom
fix/option-backspace-in-inputs

Conversation

@nwparker
Copy link
Copy Markdown
Contributor

Summary

  • Terminal keyboard handlers for Alt+Backspace and Ctrl+Backspace were registered globally with capture: true, intercepting the events even when focus was in an input or textarea
  • This prevented native word-delete (Option+Backspace on macOS) from working in dialogs like Add Worktree
  • Now both handlers skip PTY forwarding when the event target is an INPUT or TEXTAREA

Test plan

  • Open Add Worktree dialog, type a branch name, use Option+Backspace to delete a word — should work
  • Verify Option+Backspace still works in terminal panes (backward-kill-word)
  • Check other text inputs (worktree meta dialog, search, settings) also support Option+Backspace

🤖 Generated with Claude Code

The terminal's Alt+Backspace and Ctrl+Backspace keyboard handlers were
registered on window with capture:true, intercepting the events globally
— even when focus was in an input or textarea. This prevented native
word-delete (Option+Backspace on macOS) from working in dialogs like
the Add Worktree form. Skip the PTY forwarding when the event target
is an INPUT or TEXTAREA.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nwparker nwparker merged commit 04e8550 into main Mar 25, 2026
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.

1 participant