Norwegian keyboard layout on Mac: Option+Shift+8/9 produces ( ) instead of { } in CLI prompt
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
On macOS with a Norwegian keyboard layout, typing Option+Shift+8 (which should produce {) and Option+Shift+9 (which should produce }) instead produces ( and ) in the Claude Code CLI prompt. This works correctly in all other applications and terminal contexts, including regular terminal commands.
Expected Behavior
{ and } are inserted into the prompt.
Actual Behavior
( and ) are inserted instead.
## Environment
- Claude Code version: 2.1.85
- macOS version: 15.7.3 (Sequoia)
- Keyboard layout: Norwegian
What Should Happen?
{ and } should be inserted into the prompt when typing Option+Shift+8 and Option+Shift+9 respectively.
Error Messages/Logs
Steps to Reproduce
- Set keyboard layout to Norwegian on macOS
- Open Claude Code CLI
- Type
Option+Shift+8— expect{, get( - Type
Option+Shift+9— expect}, get)
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.85
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗