Rewrite ascii mode switch logic
Pull request
重写 ascii_mode 切换逻辑,记住每个键盘布局的 ascii_mode
Issue tracker
Fixes will automatically close the related issues
Fixes #1092 Fixes #1028 Fixes #1035
Feature
Describe features of this pull request
Code of conduct
- [x] CONTRIBUTING
Style lint
- [x]
make sytle-lint
Build pass
- [x]
make debug
Manually test
- [x] Done
Code Review
- No wildcards import
- Manual build and test pass
- GitHub Action CI pass
- At least one contributor review and approve
- Merged clean without conflicts
- PR will be merged by rebase upstream base
Daily build
Login and download artifact at https://github.com/osfans/trime/actions
Additional Info
@goofyz 我用虚拟机测试的,确实是非常慢,你试一下编译为 release 版本的速度吧
release 版平均也要 200ms
release 版平均也要 200ms
我这边真机 debug 都只需要 5ms,WP 使用虚拟机+debug 也只要几十ms,可能还是手机的问题。
这个 pr 只是修复 ascii_mode 切换 bug。
以后可以写个专门的符号键盘,不通过 rime 直接上屏,可以避免这个问题。
@goofyz 再看看吧,逻辑应该没问题了,性能我没法解决
在我的機子是慢了。不過也可以接受。 @WhiredPlanck @Bambooin 你們的有沒有問題?
@goofyz @nopdan 我这边第一次冷启动会卡一下,其余时间相对正常。