在Spread获得焦点,按下F2,f3,f4 时,对应的窗体key_down事件里捕捉不到
已经设置Intputmap 为none,还是没用,因为F2在我程序里是窗体里的快捷键,所以必须在窗体事件里捕捉
FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.F2, Keys.None), FarPoint.Win.Spread.SpreadActions.StartEditing);
im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.F2, Keys.None), FarPoint.Win.Spread.SpreadActions.StartEditing);
上面的代码已经设置,但无效
参考了这个连接 http://our.componentone.com/grou ... -editmodepermanent/
说要在spread 中处理Dialogkey,才能捕捉到 F2,f3,f4事件,怎么才用禁用F2,f3,f4默认的行为呢,让窗体能响应到Keydown 事件 |
|