Replies: 6 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
我只是测试一下execute能否执行,所以没写undo行为,随便写了一个行为,但也不执行。 |
Beta Was this translation helpful? Give feedback.
-
@yantze @erha19 我在git把ide-electron克隆,没有改任何代码,运行了一下,undo和redo也是无效的,是没有实现吗,能教我一下怎么实现undo和redo吗 |
Beta Was this translation helpful? Give feedback.
-
@yantze ,触发了,我在上面加了一行this.messageService.info(),能够显示信息,但是不执行undo操作, |
Beta Was this translation helpful? Give feedback.
-
你说的 undo 操作是在编辑器中 undo 还是你自定义的某个页面进行 undo? |
Beta Was this translation helpful? Give feedback.
-
怎么感觉像是其它软件设置全局快捷键导致的遗留问题,所以重启电脑一下试试 |
Beta Was this translation helpful? Give feedback.
-
在electron环境下,撤销、重做按钮无效,查看源码是electron.undo事件,我又重写了这个事件,但是还是无效。
相当于是我重写了这个id为electron.undo事件,并且重写了一个他的菜单注册上去,但是单机对应菜单后,不执行相应的命令,我如果把electron.undo换成别的就是可以的,是命令不能被覆盖重写吗。那撤销按钮无效我该如何解决
Beta Was this translation helpful? Give feedback.
All reactions