Behind the scenes: international keyboard shortcuts
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.
Related posts
- macOS Keyboard Shortcut Localization
Zed mediumAdeptZed 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.
- 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.
- A conversation with Figma's accessibility team
Figma easyNovice
Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta. Open-beta feedback showed the feature worked in VoiceOver but needed fixes for JAWS and NVDA. Low-vision users also rely on visuals alongside the screen reader, so the team added positioning data to the accessibility tree, focus-triggered hover interactions, scroll-following, and focus-aware toolbar hiding. For FigJam, designs are translated into HTML with accessibility metadata, and reading order now uses a spatial heuristic that reads left-to-right and top-to-bottom while keeping sticky clusters together, borrowed from find-and-replace. Open problems include announcing real-time collaborative changes and giving designers control over the generated semantic HTML.
- WebKit Features in Safari 17.4
WebKit mediumAdeptSafari 17.4 ships 46 web platform features and 146 bug fixes, alongside completion of WebKit's multi-year rewrite of its inline layout engine. The rewrite retires the 21-year-old legacy line layout code, finishing with a reimplementation of Ruby, and is the starting point for rewriting other formatting contexts, beginning with Flexbox. Headline features include a native HTML switch (`<input type="checkbox" switch>`) that falls back to a checkbox, vertical writing-mode form controls, `align-content` in block and table layout, and the `@scope` rule. The release also adds web app manifest `shortcuts` and `categories` on macOS. `@scope` changes specificity tie-breaking so the rule whose scope root is closest in the DOM wins, so it should be adopted with care.