---
title: "macOS Keyboard Shortcut Localization"
description: "Zed 0.162 reworks macOS keyboard shortcut handling so default bindings work on non-Latin, IME-based and non-US Latin layouts."
url: "https://swe.quest/articles/macos-keyboard-shortcut-localization-1481e739a6eaeda6"
canonical: "https://zed.dev/blog/keyboard-localization"
source: "Zed"
published: "2024-11-08"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 5
tags: ["developer-tools","swift"]
---

# macOS Keyboard Shortcut Localization

A post on [Zed](https://swe.quest/sources/zed.md), published 2024-11-08, 5 min read, Deep dive. Original: [https://zed.dev/blog/keyboard-localization](https://zed.dev/blog/keyboard-localization)

## Summary

Zed 0.162 reworks macOS keyboard shortcut handling so default bindings work on non-Latin, IME-based and non-US Latin layouts. Alphabetic option-key shortcuts are dropped, shortcuts fire before the IME unless composition is active, and the macOS command-key Latin layout is used to resolve shortcuts even without command held. For layouts like QWERTZ, Zed reproduces Apple's undocumented key-equivalent remapping, reverse-engineered by rendering SwiftUI menus. Dead keys are resolved via two UCKeyTranslate calls as Chrome does, which creates a Vim-mode inconsistency the team may revert.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Swift](https://swe.quest/tags/swift.md) (Languages)

## Prerequisites

- macOS keyboard input
- keyboard shortcuts

## Keywords

Zed, macOS, UCKeyTranslate, SwiftUI, IME, Vim mode

## Related posts

- [Behind the scenes: international keyboard shortcuts](https://swe.quest/articles/behind-the-scenes-international-keyboard-shortcuts-8088a7a096d216ad.md): Figma · 2023-02-28 · Medium · 11 min read · Browsers, Frontend, Accessibility, Product engineering
  Figma reworked its US-QWERTY-centric keyboard shortcuts to support about 15 international layouts, including German, French AZERTY, Japanese, Swedish and Korean.
- [Zed Weekly: #24](https://swe.quest/articles/zed-weekly-24-ca50786cbb34184d.md): Zed · 2023-10-20 · Medium · 5 min read · Developer tools, Rust
  Weekly roundup from the Zed editor team covering a range of fixes and features.
- [Implementing Vertical Form Controls](https://swe.quest/articles/implementing-vertical-form-controls-0957876d48409686.md): WebKit · 2024-03-18 · Medium · 4 min read · Browsers, CSS, Frontend
  Safari 17.4 supports vertical writing modes (\`writing-mode: vertical-rl\` / \`vertical-lr\`) on button, textarea, progress, meter, input and select elements, part of the Interop 2023 effort for CJK and Mongolian text.
- [The golden rule of Customizable Select](https://swe.quest/articles/the-golden-rule-of-customizable-select-f338a360afa66726.md): WebKit · 2026-06-15 · Medium · 3 min read · Accessibility, CSS, Browsers, Frontend
  Customizable select, arriving in Safari 27, lets developers fully style \`\<select\>\` elements with custom arrows, icons and swatches while keeping native keyboard navigation and accessibility semantics.
- [Bringing Back Horizontal Rules in Select Elements](https://swe.quest/articles/bringing-back-horizontal-rules-in-select-elements-517d2598537c7cc4.md): WebKit · 2024-01-25 · Medium · 4 min read · Browsers, Frontend, Accessibility
  Safari 17.0 on macOS again renders \`\<hr\>\` elements placed between \`\<option\>\`s in a \`\<select\>\` as horizontal separator lines.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
