peixueliang2006 你好,
请问是你的 Case 是指某个单元格一直获得 focus 吗?
可以屏蔽其他快捷键,方法如下(以向上键为例):- //更改 Up 键默认值,left、right、down 键设置方法相同
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Up, Keys.None), FarPoint.Win.Spread.SpreadActions.None);
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Up, Keys.None), FarPoint.Win.Spread.SpreadActions.None);
复制代码 |