修改Enter Key的activon
- // Create an InputMap object.
- FarPoint.Win.Spread.InputMap inputmap1;
- // Assign the InputMap object to the existing map.
- inputmap1 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- // Map the Enter key.
- inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextCellThenControl);
- // Create another InputMap object.
- FarPoint.Win.Spread.InputMap inputmap2;
- // Assign this InputMap object to the existing map.
- inputmap2 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- // Map the Enter key.
- inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextCellThenControl);
复制代码 |