Skip to content

Commit 1a50eb2

Browse files
committed
フォーカス処理の修正と追加
`CheckBoxPostBar_CheckedChanged` メソッド内で `_formPostBar.Visible` が `true` の場合に `_formPostBar.textBoxPost.Focus()` を呼び出し、`false` の場合には `dataGridViewNotes.Focus()` を呼び出すように変更しました。また、`_formRelayList.Dispose()` の後に `dataGridViewNotes.Focus()` を呼び出すコードを追加しました。
1 parent c8bd066 commit 1a50eb2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

kakoi/FormMain.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,14 @@ private void FormMain_Load(object sender, EventArgs e)
15521552
private void CheckBoxPostBar_CheckedChanged(object sender, EventArgs e)
15531553
{
15541554
_formPostBar.Visible = checkBoxPostBar.Checked;
1555-
_formPostBar.textBoxPost.Focus();
1555+
if (_formPostBar.Visible)
1556+
{
1557+
_formPostBar.textBoxPost.Focus();
1558+
}
1559+
else
1560+
{
1561+
dataGridViewNotes.Focus();
1562+
}
15561563
}
15571564
#endregion
15581565

@@ -1630,6 +1637,7 @@ private void ButtonRelayList_Click(object sender, EventArgs e)
16301637
ButtonStart_Click(sender, e);
16311638
}
16321639
_formRelayList.Dispose();
1640+
dataGridViewNotes.Focus();
16331641
}
16341642
#endregion
16351643

0 commit comments

Comments
 (0)