[PR #7014] feat: add Cmd+Backspace and Option+Backspace support in text inputs #12205

Closed
opened 2026-02-16 18:17:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7014

State: closed
Merged: No


Summary

  • Adds super+backspace (Cmd+Backspace on macOS) keybinding to input_delete_to_line_start for deleting text from cursor to line start
  • Option+Backspace (alt+backspace) was already configured for input_delete_word_backward

Changes

  • config.ts: Added super+backspace to the default keybindings for input_delete_to_line_start
  • keybind.test.ts: Added 4 new tests for modifier+backspace keybind parsing

Testing

All 51 keybind tests pass, including the new tests for:

  • super+backspace parsing (Cmd+Backspace)
  • alt+backspace parsing (Option+Backspace)
  • Combined keybind strings for both operations
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7014 **State:** closed **Merged:** No --- ## Summary - Adds `super+backspace` (Cmd+Backspace on macOS) keybinding to `input_delete_to_line_start` for deleting text from cursor to line start - Option+Backspace (`alt+backspace`) was already configured for `input_delete_word_backward` ## Changes - **config.ts**: Added `super+backspace` to the default keybindings for `input_delete_to_line_start` - **keybind.test.ts**: Added 4 new tests for modifier+backspace keybind parsing ## Testing All 51 keybind tests pass, including the new tests for: - `super+backspace` parsing (Cmd+Backspace) - `alt+backspace` parsing (Option+Backspace) - Combined keybind strings for both operations
yindo added the pull-request label 2026-02-16 18:17:08 -05:00
yindo closed this issue 2026-02-16 18:17:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12205