Send keys to windows whose focus isn't a text field
Les mainteneurs répondent en général sous 1 jour
Une pull request liée a déjà été fusionnée.
- #51 par @iamnbutler — fusionnée
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
Piste de recherche
Start in native/sources/client/actions.swift, where key and insert are refused when the snapshot has no focusedElement, then read focusedTextElement in BackgroundInputDriver.swift to see why only text receivers are accepted. Choosing between the two options is a design decision to settle with maintainers first. Done means keys reach a non-text focused receiver or the refusal names the real requirement and points to desktop_menu, with the exact process, window and focus checks kept.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Found in the Ace desktop tools study (githubnext/ace#427), scenario D2 on Canary 0.0.46+dd15840.
Observed: desktop_key Escape to a Finder window, with a file row selected, was refused twice: "The snapshot has no exact focused control. Click a control, then inspect the window again." The agent clicked a row and tried again, and it was refused again.
Cause: native/sources/client/actions.swift refuses key and insert when the snapshot has no focusedElement. Peekaboo's background input driver only resolves a focused text element as the receiver (focusedTextElement in BackgroundInputDriver.swift). So keys only work while a text field has focus. Escape, arrow keys, Return, Space (Quick Look) and Cmd shortcuts in lists, outlines, canvases and the Finder can't be sent. The hint suggests a click that can't help.
Options:
- Admit a non-text focused receiver (a list, outline, table or web area) with the same exact process, window and focus checks, using background delivery when the app accepts it.
- Or expose foreground key delivery for an exact window that has been activated, with the outcome left unknown when focus can't be read back. This is the
--foregroundgap from #11.
Short term, the refusal should say that keys need a focused text field, and point to desktop_menu when the command is in a menu.
- Langage dominant
- Swift
- Étoiles
- 0
- Forks
- 0
- Merge moyen
- 15 min
- PR mergées (30 j)
- 94
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de githubnext/desktop-tools
-
Ace: adopt desktopToolRules()Ouverteace documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
githubnext/desktop-tools#104 ·
Les mainteneurs répondent en général sous 1 jour
-
Agent task coverage auditOuvertedocumentation
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
githubnext/desktop-tools#75 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
githubnext/desktop-tools#42 · 29 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
githubnext/desktop-tools#27 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
question
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 8/100
githubnext/desktop-tools#24 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de githubnext/desktop-tools
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
Les mainteneurs répondent en général sous 1 jour
-
test(BrainBar): inject synthetic observabilityCadence in BackupsHealth/one-page fixtures (DCI-1)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
EtanHey/brainlayer#1367 ·
Les mainteneurs répondent en général sous 1 jour
-
cmux-next: new workspaces show no name instead of workspace-NPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertearea: workspaces
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
manaflow-ai/cmux#21357 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 4 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100