macOS Keyboard Shortcut Localization
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.
Related posts
- Behind the scenes: international keyboard shortcuts
Figma mediumAdept
Figma reworked its US-QWERTY-centric keyboard shortcuts to support about 15 international layouts, including German, French AZERTY, Japanese, Swedish and Korean. The work ran into several traps. `"ß".toUpperCase()` returns `SS`, which broke shortcut normalization until the team switched to the capital eszett `ẞ`. Dead keys such as `^` on AZERTY collide with Safari's reordering of keydown and composition events, and Shift plus numpad keys override numlock. Layout detection is heuristic: the desktop app reads OS layout IDs and needed prefix matching after Apple renamed its Japanese layouts, while browsers rely on the experimental Keyboard API. The team stores layout preferences per device in localStorage with a backend fallback, and dropped auto-switching layouts in favour of minimally intrusive onboarding.
- Zed Weekly: #24
Zed mediumAdeptWeekly roundup from the Zed editor team covering a range of fixes and features. Gitignore handling now stops at the first .gitignore whose sibling is a .git directory, which fixes setups with a dotfiles repo in $HOME. Up/down cursor movement now uses the text layout engine's output instead of counting UTF-8 bytes, because code points and grapheme clusters still break on font fallback, double-width characters and proportional fonts. Other items include guest participants in calls, a Copilot keybind collision with typographic quotes, Tailwind autocomplete for more languages, a Vim-mode toggle command, remote terminal sharing work, and a "Retrieve Context" button that feeds semantic-index results to the inline assistant.
- Implementing Vertical Form Controls
WebKit mediumAdeptSafari 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. Inside WebKit, the user-agent stylesheet moved from physical to logical properties, custom layout code was fixed to compute logical widths, and baseline alignment now uses the central baseline in vertical modes. On macOS, which has no native vertical controls, some system-drawn controls like progress are rotated, while select uses custom fallback painting because its shadows prevent rotation. Custom-painted controls now use logical coordinates, glyph-like checkboxes and radios needed no changes, and popup UIs such as select menus and color pickers remain horizontal.
- The golden rule of Customizable Select
WebKit mediumAdeptCustomizable 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. The one essential rule is to always give each `<option>` text content or an accessible text attribute. Icon-only options are harder for everyone to scan, unusable with screen readers and braille displays, and render as empty options in browsers without support or when CSS fails to load. Use visually hidden text or `alt` attributes where needed, mark decorative images with `alt=""`, and wrap enhancements in `@supports (appearance: base-select)` so plain text stays the baseline.
- Bringing Back Horizontal Rules in Select Elements
WebKit mediumAdeptSafari 17.0 on macOS again renders `<hr>` elements placed between `<option>`s in a `<select>` as horizontal separator lines. Originally added to WebKit in 2006, the feature was silently lost for a decade when WebKit adopted its HTML5-based parser, and was restored by changing the HTML Standard's parsing rules so it is now standardized and covered by cross-browser tests. Caveats: separators are visual only and not announced by assistive technologies such as VoiceOver, `<hr>` is only supported as a direct child of `<select>` (not `<optgroup>`), and with `size` > 1 they render as blank space.