Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Navigating via keyboard and opening photos, Viewer does not take focus, and resets focus to beginning of Files list after closing

Aperta
#860 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript

Direzione di ricerca

Inizia riproducendo il flusso da tastiera in Files: apri una foto con Enter, esamina il focus mentre Viewer è aperto, quindi chiudilo con Esc. Traccia la gestione del focus di Viewer e Files per determinare come viene mantenuto l’elemento iniziale; il lavoro è completato quando il primo controllo di Viewer riceve il focus e, alla chiusura, viene ripristinato l’elemento precedente appropriato o l’elemento del file aperto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

0. Needs triage bug

Describe the bug
When navigating via keyboard and opening a photo with the viewer, the tab focus is not taken correctly. That is, it still remains in the same spot as before in the file list or photo list even though the viewer is open. That leads to being able to navigate through photos with left/right arrow keys and being able to exit using esc, but you can not activate the slideshow or open the sidebar from this view.

Then when you exit the Viewer using Esc, the Tab position is reset to the top of the Files list which is also not expected.

@skjnldsv noted in addition:

We would need to restore the focus on the initial element that had it before, might be tricky, we never did that! :)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Files
  2. Start using Tab on your keyboard to go through entries (you can use the "Skip to content" link)
  3. Open a photo via Enter
  4. Exit the Viewer via Esc
  5. Be reset to the top of the Files list

Expected behavior
When you open the Viewer, the first focusable element of the viewer is focused, and when you exit it, the last focused element is remembered so you can easily continue.

(Question would be if it remembers the last focused element before the Viewer was opened, or if focuses the file which was last open in the Viewer – just in case images were navigated using the Viewer.)

Lingua principale
JavaScript
Stelle
121
Fork
70
Merge medio
1g 3h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/viewer

Tutte le issue di nextcloud/viewer

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.