Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为 editor.cc 增加 commit_context_input 方法 以及 修复 commit_raw_input 错误更新用户词 #713

Open
hoofcushion opened this issue Sep 14, 2023 · 0 comments

Comments

@hoofcushion
Copy link

commit raw input 是会更新用户词的,上屏的是 “我de”,但却会记录 “我” 的用户词,建议修改
20230915050451

editor.cc 没有 commit_context_input 方法,于是我用 Lua 实现了一个,希望 editor.cc 也能实现

local keyMap={[65293]=true,[65421]=true}
return function(key,env)
 if env.engine.context:has_menu() and keyMap[key.keycode] then
  env.engine:commit_text(env.engine.context.input)
  env.engine.context:clear()
  return 1
 end
 return 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant