Conversation
Owner
|
应用场景是什么? |
Contributor
Author
应用场景是processor中可以直接使用这些Rime里预定义的keycode/modifier常量,不用手工设置。这些在KeyEvent中是没有的 另外更新了下让rime_api.keysym只读 |
…e, key with the xk keyname
Contributor
k1 = KeyEvent("Shift+BackSpace") -- kk.keycode = BackSpace kk.modifier=1
k2 = KeyEvent(k1.keycode, 0)
k2:repr() -- "BackSpace" |
Contributor
Author
|
为了在processor里比较一个键值比较常量,这么绕是不是太低效了。这些本来在C++里就是个宏而已 |
Contributor
|
librime 中的 key_table.h key_table.cc 已經建了一份 直接用lua script load keycode table.lua 除了載入時比C++長 其他無異 在Processor 中 比較 KeyEvent 我可能會在env中先初始化 被比較的key 或許可以在rime_api 中實現 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.