bug: hotkeysEnabled state is set but never checked before executing hotkeys
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
tasks コンポーネントから始め、issue で説明されている hotkey 用の useEffect ハンドラーと useHotkeys の呼び出しを見つけます。mouse enter ハンドラーと mouse leave ハンドラーによって hotkeysEnabled がどのように設定されるかを確認し、hotkey がタスクテーブル上でのみ機能し、その外側では無効になることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The hotkeysEnabled state in the tasks component is set via mouse enter/leave handlers but is never actually checked before executing hotkey actions, it means hotkeys work globally on the page regardless of mouse position.
To Reproduce
Steps to reproduce the behavior:
- Go to
http://localhost:5173/home - Hover your mouse outside the task table
- Press f key
- See that the search input still gets focused
- Press r key
- See that sync still triggers
Expected behavior
- Hotkeys (f, p, ArrowUp, ArrowDown, Enter, etc.) should only work when the mouse is hovering over the task table, when mouse leaves the task table, hotkeys should be disabled
Root cause
hotkeysEnabledstate is defined and set via onMouseEnter/onMouseLeave but the manualuseEffectkeyboard handler and all useHotkeys calls does not checkhotkeysEnabledbefore executing
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: Latest
video:
https://github.com/user-attachments/assets/6eeacafc-9ed0-421a-9f52-3985c2f6711a
- I want to work on this issue.
- 主要言語
- TypeScript
- スター
- 37
- フォーク
- 76
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CCExtractor/ccsync のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
CCExtractor/ccsync#473 · コメント 1 件 ·
-
GET /tasks is not serialized and Taskwarrior data isolation may race through shared /root/.taskオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
CCExtractor/ccsync#471 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
CCExtractor/ccsync#440 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CCExtractor/ccsync#433 · コメント 2 件 ·
-
backend complex enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
CCExtractor/ccsync#367 · コメント 2 件 ·
CCExtractor/ccsync の issue をすべて見る
似ている issue
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesオープンarea/core bot:bug bot:working
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
emdash-cms/emdash#3905 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
lingdojo/kana-dojo#31728 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))対応中かも @zjncs が今日担当しました。 オープンcomponent:tokenless
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
agentic-os-org/ANOLISA#6112 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rjsf-team/react-jsonschema-form#5439 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信