在spread初期时,设置【Enter】键的功能:
inputMap = .GetInputMap(InputMapMode.WhenAncestorOfFocused)
inputMap.Put(New Keystroke(Keys.Enter, Keys.None), SpreadActions.MoveToNextColumnWrap)
inputMap = .GetInputMap(InputMapMode.WhenFocused)
inputMap.Put(New Keystroke(Keys.Enter, Keys.None), SpreadActions.MoveToNextColumnWrap)
之后,程序运行时,当cell是编辑状态时,【Enter】键按下时,【KeyDown】事件无效,为什么?
有解决办法吗?
请指教! |
|