Posted 8 September 2017, 12:43 pm EST
i got a problem catching F2-F4 Keys in the keydown event of the spread control. I already looked inside the forums and found some information which isn't working. Obviously the data model has changed (the samples was from 2003) but i tried to match the code as close as possible. I implemented the following lines of code:
FarPoint.Win.Spread.Keystroke F2 = new FarPoint.Win.Spread.Keystroke(Keys.F2, Keys.None, false);
FarPoint.Win.Spread.Keystroke F3 = new FarPoint.Win.Spread.Keystroke(Keys.F3, Keys.None, false);
FarPoint.Win.Spread.Keystroke F4 = new FarPoint.Win.Spread.Keystroke(Keys.F4, Keys.None, false);
im = fpSpreadMain.GetInputMap(InputMapMode.WhenAncestorOfFocused);
But the Keys still don't get caught by the event. Am i doing anything wrong here ?