Playground selection bar: comes back after Apply or scrolling while focus is in the Markdown pane

オープン 初心者向け
#175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
desktop, testing

調査の方向性

samples/SIL.TextEditing.Playground/PlaygroundView.SelectionBar.cs、特に UpdateSelectionBar と SelectionBarFocusMoved を読み、フォーカスの確認方法とバーの非表示方法を確認してください。説明されているフォーカス動作と、Markdown ペインにフォーカスを移して Apply を実行し、バーが閉じたままであることを確認するテストを追加してください。フィールドにもバーにもフォーカスがない状態で Apply の後もバーが閉じたままになれば完了です。

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

説明

From the review of #174. UpdateSelectionBar (samples/SIL.TextEditing.Playground/PlaygroundView.SelectionBar.cs) never checks focus. Focus leaving the field hides the bar (SelectionBarFocusMoved), but a later Apply in the Markdown pane, or scrolling the field, calls UpdateSelectionBar and the bar opens again over the unfocused field.

Fix: at the top of UpdateSelectionBar, hide unless the field or the bar has focus, reusing the check in SelectionBarFocusMoved. Then add a test: focus the Markdown pane, apply, and check that the bar stays closed.

🤖 Generated with Claude Code

主要言語
C#
スター
0
フォーク
0
平均マージ
1時間 43分
マージ済み PR(30日)
43

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

sillsdev/SIL.TextEditing のほかの issue

sillsdev/SIL.TextEditing の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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