你可以参看“Default Keyboard Navigation”章节,Delete键默认对应的是DeleteShape操作。
想修改的话,重新设置InputMap即可。
例如:- private void Form1_Load(object sender, System.EventArgs e)
- {
- FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
- // Define the operation of pressing Enter key in cells not being edited as "Move to the next row".
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- // Define the operation of pressing Enter key in cells being edited as "Move to the next row".
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- }
复制代码 |