Comments (2)
需要編程實現。
現有程序對數字鍵盤的處理是用來選字。
from home.
试了一下,可以用 lua 做,大致像下面这样:
-- commit_kbn.lua local s = {} function s.init( env ) s.kb = { 'KP_0', 'KP_1', 'KP_2', 'KP_3', 'KP_4', 'KP_5', 'KP_6', 'KP_7', 'KP_8', 'KP_9' } for i, v in ipairs( s.kb ) do s.kb[v] = i - 1 end end function s.func( key, env ) if key:release() or key:alt() or key:super() or key:ctrl() then return 2 end local context = env.engine.context local num = s.kb[key:repr()] if context:is_composing() and num then context:commit() context:commit_text( num ) return 1 end return 2 endengine: processors: - lua_processor@*commit_kbn
非常感谢您提出的创意方案,我是一个 0 基础的小白,我学习学习怎样应用它,这对我来说很有帮助!再次感谢!
from home.
Related Issues (20)
- 0.16 Release版,使用者非管理員權限用系統管理員權限輸入帳密開啟程式,程式無法用小狼毫輸入中文
- 自动造词不符合编码规则 HOT 3
- 鼠鬚管 如何关闭联想长候选词的拼音展示 HOT 2
- 小狼毫同步、部署时报错:xxx log 被占用无法删除
- mac上是否有办法实现按shift进行中日文切换的操作? HOT 4
- 候選字界面跑到視窗左上方 HOT 4
- 哪里可以找到完整的配色方案配置项? HOT 1
- 如何让Caps Lock像微软注音一样只切大小写不切中英文
- 如何只在反查中使用繁简转换,方案中不使用繁简转换?(五代仓颉,反查使用拼音) HOT 2
- 最新版本1.11.2,无法修改输入法外观 HOT 3
- 鼠须管从0.15.0升级到1.0.1之后,和color_scheme相关的配置失效 HOT 6
- squirrel 在vs code中, jupter notebook 中英切换有BUG HOT 1
- 更新后右键菜单变成英文了 HOT 1
- 在部分软件输入中文时,输入法不显示已输入的拼音 HOT 3
- 鼠须管如何更改用户文件夹的位置? HOT 2
- 更新到1.0.2后,竖屏幕显示 HOT 4
- 我开源了一个五笔词库 帮我点赞一下 https://github.com/limaofu/cof86 HOT 1
- 我开源了一个五笔词库 帮我点赞一下 https://github.com/limaofu/cof86 HOT 1
- Ubuntu Rime 无法在 AppFlowy 中输入中文
- 不能组成词组【复效】 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home.