Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Keyboard navigation triggers next rather than action button

オープン
#1,873 コメント 5 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

まず、tour のキーボードナビゲーション処理と、issue に記載されているアクションボタンの設定箇所を見つけます。左矢印キーと右矢印キーが現在どのようにステップを進めているかを追跡し、次にカスタムアクションと Back/Next ボタンがどのように表現されているかを確認します。デフォルトの Next ボタンを置き換えるステップで、キーボードナビゲーションが意図したアクションを呼び出し、既存のマウス操作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
13.8k
フォーク
658
平均マージ
7日 5時間
マージ済み PR(30日)
18

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

shipshapecode/shepherd のほかの issue

shipshapecode/shepherd の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。