Flex树空间默认事件监听器
我注意到,当我选择树节点时,如果单击空间,所选节点就会打开...我如何删除此事件?
I have noticed that when I select tree node if space is clicked the selected node gets opened... how could I remove this event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来没有办法阻止该事件,如果有的话,我不确定这是否明智,因为 Tree 的 keyDownHandler 所做的不仅仅是打开节点。
我通过创建自定义树解决了这个问题。遗憾的是我不得不从树的 keyDownHandler 中复制几行代码。
It doesn't look like there's a way to prevent the event and if there is one I'm not sure it's wise since the Tree's keyDownHandler does a little bit more than just opening the node.
I solved it by creating a custom Tree. Sadly I had to copy a few lines of code from the Tree's keyDownHandler.