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

Keyboard navigation triggers next rather than action button

Aperta
#1,873 5 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia individuando la gestione della navigazione da tastiera del tour e la configurazione dei pulsanti di azione descritta nell’issue. Segui il modo in cui i tasti freccia sinistro e destro fanno avanzare attualmente i passaggi, quindi determina come sono rappresentate le azioni personalizzate e i pulsanti Back/Next. Il lavoro è completato quando la navigazione da tastiera invoca l’azione prevista per i passaggi che sostituiscono il pulsante Next predefinito, mantenendo il comportamento esistente del mouse.

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

Descrizione

This is something we intended to look at as part of our project but we've run out of time / budget - so I'm raising it, in case anyone else is able to.

I've set up a number of tour steps, most of which have Back and Next buttons but for some steps I've replaced the 'Next' button with a custom action (mostly basic stuff - e.g. click a menu link and then call next).

This works fine when navigating the tour using the mouse but, if you use the keyboard navigation - the right arrow key will always just move the user to the next tour step and never trigger the custom action.

Could there be a way to specify which button should be triggered by the left and right arrow keys? Or, as a bit of a fudge, could the right arrow key trigger the first button on that step which has an action with a class of 'next-button' (and vice versa for the back button)?

Lingua principale
JavaScript
Stelle
13.8k
Fork
658
Merge medio
7g 5h
PR unite (30g)
18

Guida per i contributori

Apri la guida per i contributori

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 shipshapecode/shepherd

Tutte le issue di shipshapecode/shepherd

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.