KeyDown events

2008.01.14

I wasn’t properly handling passed in KeyDown events so you actually had to click an item to get the context menu. I corrected this and the new behavior is up and down move through the items and the right keypad button opens the context menu.

private void ceTwit_KeyDown(object sender, KeyEventArgs e)
  {
    if (e.KeyCode == Keys.Right)
    {
      contextMenu1.Show(timeline2, new Point(10, (timeline2.SelectedIndex * timeline2.ItemHeight) ));
    }
  }
Categories : ceTwit

Leave a comment