claude-code - 💡(How to fix) Fix Norwegian keyboard layout on Mac: Option+Shift+8/9 produces ( ) instead of { } in CLI prompt [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45102Fetched 2026-04-09 08:13:14
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Set keyboard layout to Norwegian on macOS
  2. Open Claude Code CLI
  3. Type Option+Shift+8 — expect {, get (
  4. 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

extent analysis

TL;DR

The issue can likely be resolved by adjusting the keyboard layout handling in the Claude Code CLI to correctly interpret Option+Shift+8 and Option+Shift+9 for Norwegian keyboard layouts.

Guidance

  • Verify that the issue is specific to the Norwegian keyboard layout by testing with a different layout to confirm if the problem persists.
  • Check if there are any existing configuration options in Claude Code for customizing keyboard shortcuts or layout-specific behavior that could be adjusted to fix the issue.
  • Consider reporting this as a bug to the Claude Code developers, as it seems to be a specific issue with how the CLI handles certain keyboard shortcuts on macOS with the Norwegian layout.
  • Test if the issue occurs in other terminal applications or environments to determine if it's isolated to the Claude Code CLI or a more general problem.

Example

No specific code example is applicable in this case, as the issue seems related to how the application handles keyboard input rather than a code snippet that can be modified.

Notes

The issue might be due to how the Claude Code CLI interprets keyboard shortcuts, particularly with non-standard layouts like Norwegian. It's also possible that this is a known issue that has been fixed in a later version, but without more information on version history or similar reports, it's difficult to say for certain.

Recommendation

Apply workaround: Since the issue seems specific to the Norwegian keyboard layout and the Claude Code CLI, the best immediate course of action might be to use a different keyboard layout when interacting with the CLI, or to await a potential fix from the developers if this is reported as a bug.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING