[Bug] /hooks interactive mode: pressing 'n' key triggers go back navigation
Resolved 💬 4 comments Opened Jan 20, 2026 by flyqazwsx Closed Feb 28, 2026
Description
In the /hooks command's interactive mode, the letter 'n' is globally bound as a "go back" shortcut key throughout the entire flow. This makes it impossible to input any text containing the letter 'n' in any input field.
Environment
- OS: Windows
- Claude Code version: 2.1.12
Steps to Reproduce
- Run the
/hookscommand - At any input stage (selecting hook type, entering command, entering matcher, etc.)
- Try to type the letter 'n'
- Observe that it immediately goes back to the previous step instead of inputting the letter
Expected Behavior
The letter 'n' should be input normally into text fields. Navigation shortcuts should use key combinations (e.g., Ctrl B, ESC) instead of single letters.
Actual Behavior
The single letter 'n' triggers a navigation action ("go back") across the entire /hooks interactive flow.
Impact
- Cannot input common words like
Notification,node,npm,powershell,python, etc. - Makes the
/hookscommand nearly unusable for any command containing the letter 'n' - Users must work around this by:
- Manually editing
settings.jsondirectly - Copy-pasting pre-written commands with Ctrl V
- Using cursor navigation to insert 'n' after typing other characters
Related Issues
- #6674 (Hook navigation infinite loop)
- #11265 (Arrow key navigation trapped)
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗