您好,在编辑状态认为您在输入内容所以不触发事件,可以使用InputMap监视用户输入。
- FarPoint.Win.Spread.Keystroke k = new FarPoint.Win.Spread.Keystroke(Keys.C, Keys.None, false);
- FarPoint.Win.Spread.InputMap im;
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- im.Put(k, FarPoint.Win.Spread.SpreadActions.CancelEditing);
复制代码 |