Global shortcuts fire while barcode mode is active (P opens Properties, Enter launches the selected file)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, python, react
調査の方向性
まず、issueで関係するリスナーとして挙げられている useBarcodeMode と useGlobalShortcuts を読んでください。ファイルを選択した状態で p と Enter のケースを再現し、バーコードモードのテストでカバレッジを確認してください。wedge入力が消費されたときにグローバルショートカットが起動せず、Escapeとバッファが空のときのEnterは引き続き伝播する状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Repro (no barcode scanner needed)
- Have at least one file listed and selected.
Ctrl+B→ barcode mode ON.- Blindly type
filter=.pdf→ typing thepopens the Properties modal of the selected file (the char is also accumulated into the wedge buffer). - Or blindly type
filter=.md, thenEnter→ the filter is applied, but the same Enter also executes/opens the selected file (global Enter shortcut).
Root cause
useBarcodeMode's document-level capture-phase keydown listener consumes wedge-scanner keystrokes (printable accumulation, Enter with a non-empty buffer) but never calls stopPropagation(). Every keydown therefore still reaches the global-shortcuts window listener (useGlobalShortcuts), whose colliding branches are:
- plain
p(no modifiers) with a selected file → Properties modal - plain
?→ shortcuts modal Enterwith a selected file → execute/launch
A real USB/wedge scanner typing a payload hits the exact same leaks — this is not specific to manual typing.
This predates the #148 refactor (the same two listeners coexisted inline in pre-refactor App.tsx; verified at main and at 332e951). The decomposition preserved it verbatim under the "quirks survive" policy, and the characterization tests only exercised barcode input on an empty file list, where both leaks were harmless no-ops.
Proposed fix
stopPropagation() on exactly the keys the wedge handler consumes (printable accumulate; Enter with a non-empty buffer). Escape and empty-buffer Enter keep propagating, preserving modal-close and manual-execute behavior.
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 4時間 46分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
falbany/ProFiles のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
falbany/ProFiles の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ip-tools/patzilla#219 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesオープンpriority:p3 technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jimmy058910/jmo-security-repo#1673 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ready
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
integration: frontier_silicon
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
home-assistant/core#193176 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
task create and task update take --body-file and --stdin対応中かも @JuanBarriosS が今日担当しました。 オープンcli enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
pyrite-wiki/pyrite#1687 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信