macOS Context Menu
macOS Context Menu
Un macOS Context Menu est une courte liste d'actions pour l'élément sous le curseur. Il s'ouvre avec un clic secondaire, comme un clic droit.
Un autre exemple
Cliquer droit sur un fichier sélectionné affiche Renommer, Dupliquer, Partager et Déplacer à la corbeille sans quitter la liste.
Parties principales
- 01Déclencheur
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
Utilisez-le lorsque
Utilisez-le pour un petit ensemble d'actions moins courantes qui dépendent de l'élément ou de la sélection sous le curseur.
Ne l'utilisez pas lorsque
Ne faites jamais d'un menu contextuel le seul chemin vers une commande importante. Éloignez les commandes de l'application des actions pour un seul élément.
Nom utilisé dans le code
AppKit NSMenu / SwiftUI contextMenu Avant d'expédier
Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion.
Outcome: Complete the task with macOS Context Menu (macOS Context Menu). User context: Cliquer droit sur un fichier sélectionné affiche Renommer, Dupliquer, Partager et Déplacer à la corbeille sans quitter la liste. macOS concept or control: macOS Context Menu (macOS Context Menu). Why it fits: Utilisez-le pour un petit ensemble d'actions moins courantes qui dépendent de l'élément ou de la sélection sous le curseur. Do not use it when: Ne faites jamais d'un menu contextuel le seul chemin vers une commande importante. Éloignez les commandes de l'application des actions pour un seul élément. Platform requirements: List the supported macOS versions. Say whether AppKit or SwiftUI owns each part and how they connect. Define window, menu, focus, keyboard, saved state, restore, and multi-window behavior. Platform accessibility and resilience: Use the right accessibility APIs. Check VoiceOver and Full Keyboard Access. Support localization, contrast, and reduced motion when needed. Keep user state after a relaunch. Acceptance criteria: Check the behavior on supported macOS versions with a keyboard and VoiceOver. Window resizing, focus, state restore, and AppKit or SwiftUI integration work in the normal macOS way. Evidence and limits (evidence boundary): C'est officiel pour cette source. D'autres plateformes ou équipes peuvent utiliser le terme d'une autre manière. Unknowns to confirm: Supported macOS versions, AppKit or SwiftUI structure, and window model. Also confirm sandbox and entitlement limits, save rules, and the accessibility goal.
Vérifiez cette demande
Review how macOS Context Menu (macOS Context Menu) is used now. Definition: Un macOS Context Menu est une courte liste d'actions pour l'élément sous le curseur. Il s'ouvre avec un clic secondaire, comme un clic droit. Release checks: Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.