Generally, non-Latin keyboards like Arabic switch to Latin when ⌘ (Command) is pressed, to allow pressing ⌘P. The letter P is also written on Apple’s keyboards as an indication for this use case. That said you’re correct, not all shortcuts defined in QWERTY are doable on all other keyboard layouts. That’s why AppKit, UIKit, and SwiftUI apps automatically localize keyboard shortcuts. Developers are encouraged to define the shortcuts in QWERTY – English (also called “ABC”), and then at runtime they’ll adapt automatically for the user’s current input method & language directionality. Many parameters are taken into account to compute the best hotkey equivalent, for hundreds of keyboard layouts, and left-to-right vs. right-to-left. For instance, ⌘[ is ⌘] in right-to-left, or ⌘^ in ABC – AZERTY. The system is taking care of localizing menus & shortcut display. There is no API currently for your shortcut customization panel to fetch the localized shortcut display like OS menus do. You can request an
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags: