dear all, i m facing the following issue when i pressed shortcut key which is "Ctrl + F" register in my application using the following code.
[code]
this.grdMain.GridViewElement.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.F));
this.grdMain.GridBehavior = new ModifiedGridActions();
[/code]
and overriding the keyprocess function in grid behaviors using the following code
[code]
public class ModifiedGridActions : BaseGridBehavior
{
public override bool ProcessKey(KeyEventArgs keys)
{
try
{
if (keys.Control && keys.KeyCode == Keys.F) // issue on this line
{
this.GridControl.MasterView.TableFilteringRow.Cells["cName"].BeginEdit();
}
}
catch (Exception ex)
{
}
return base.ProcessKey(keys);
}
}
[/code]
when i press ctrl + f above override function triggers but its parameter only contains keys.control is true and keys.keycode property contains 17 which also ctrl code. what i expect is to get keys.control is true and keys.keycode should contains keys.F so that my logic can execute am i implementing somthing wrong.