Hi,
I have an HTC Ozone, which has no touch support. So have to implement KeyDown method to trace the navigation keys.
In the screen i have image buttons, so when iam pressing any of the keys, its only selecting/opening the last image button contents.
And also i cant see any highlighter moving on pressing the navigation keys.
The KeyDown method i added is as follows:
I have an HTC Ozone, which has no touch support. So have to implement KeyDown method to trace the navigation keys.
In the screen i have image buttons, so when iam pressing any of the keys, its only selecting/opening the last image button contents.
And also i cant see any highlighter moving on pressing the navigation keys.
The KeyDown method i added is as follows:
Code:
private void UnbrandedUI_KeyDown(object sender, KeyEventArgs e)
{
if ((e.KeyCode == System.Windows.Forms.Keys.Up))
{
// Up
}
if ((e.KeyCode == System.Windows.Forms.Keys.Down))
{
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i].Focused)
{
this.SelectNextControl(this.Controls[i], true, true, true, true);
break;
}
}
}
if ((e.KeyCode == System.Windows.Forms.Keys.Left))
{
// Left
}
if ((e.KeyCode == System.Windows.Forms.Keys.Right))
{
// Right
}
if ((e.KeyCode == System.Windows.Forms.Keys.Enter))
{
// Enter
}
}
Comment