private void StatusText_KeyUp(object sender, KeyEventArgs e)
{
//スペースキーで未読ジャンプ
if (!e.Alt && !e.Control && !e.Shift)
{
if (e.KeyCode == Keys.Space || e.KeyCode == Keys.ProcessKey)
{
bool isSpace = false;
foreach (char c in StatusText.Text)
{
if (c == ' ' || c == ' ')
{
isSpace = true;
}
else
{
isSpace = false;
break;
}
}
if (isSpace)
{
e.Handled = true;
StatusText.Text = "";
JumpUnreadMenuItem_Click(null, null);
}
}
}
this.StatusText_TextChanged(null, null);
}