取消Esc 的行为,由默认行为去处理
- Dim im1 As FarPoint.Win.Spread.InputMap
- Dim im2 As FarPoint.Win.Spread.InputMap
- im1 = Fp.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
- im2 = Fp.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
- im1.Put(New FarPoint.Win.Spread.Keystroke(Keys.Esc, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
- im2.Put(New FarPoint.Win.Spread.Keystroke(Keys.Esc, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
复制代码 |