Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#860 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript

Línea de trabajo

Comienza reproduciendo el flujo de teclado en Files: abre una foto con Enter, inspecciona el foco mientras Viewer está abierto y ciérralo con Esc. Sigue la gestión del foco de Viewer y Files para determinar cómo se conserva el elemento inicial; se considera terminado cuando el primer control de Viewer recibe el foco y, al cerrarlo, se restaura el elemento anterior correspondiente o el elemento del archivo abierto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.)

Lenguaje dominante
Sin datos de lenguaje
Estrellas
123
Forks
75
Merge medio
4 d 12 h
PR fusionados (30 d)
47

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/viewer

Todos los issues de nextcloud/viewer

Issues similares

Más issues de Accessibility

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.