覆盖 Dotnet 树视图快捷键/热键
我实际上正在 3D Studio Max 中开发基于 .Net Treeview 的界面,因此使用 maxscript 和 C# 进行编码。我一直在拼命寻找一种方法来覆盖键盘操作的默认行为,即选择以字符类型开头的下一个节点。
例如,我想在按字母“F”时调用自定义函数仅此而已。到目前为止,它实际上运行了该函数,但也选择了以 F 开头的下一个节点。有人知道如何防止这最后一种行为吗?
多谢。
I'm actually working on a .Net Treeview-based Interface in 3D Studio Max, therefore coding with maxscript and C#. I've been desperately looking for a way to override the default behavior of a keyboard action, namely selecting the next node starting by the character type in.
For instance, I'd like to call a custom function when pressing the letter "F" and nothing more. By now, it actually run the function but also selects the next node starting with an F. Would anyone know how to prevent this last behavior ?
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过设置
Handled
-Property(请参阅此处)或SuppressKeyPress
-Property(请参阅此处)的 KeyEventArgs 到真的吗?
Have you tried setting the
Handled
-Property (see HERE) or theSuppressKeyPress
-Property (see HERE) of the KeyEventArgs totrue
?