Replies: 2 comments 1 reply
-
我重新优化了一下,不用每次新加小模块冗余代码 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
参考了其他编辑器快捷键的功能,很多都是如下图的实现,会有一个中间层的Core,比如居中工具,然后把功能提供给快捷键与UI组件调用,这样的好处是可以把功能代码与UI、框架解耦,各个模块也会更独立。
目前的现状是下图所示,功能代码都包含在UI组件中,我们下一步的计划就是建立Core模块,先将与快捷键相关的功能逐步改造,把功能代码迁移到Core中,并管理上快捷键模块与UI组件。
Beta Was this translation helpful? Give feedback.
All reactions