rime / rime/weasel

设置空格键清除无效编码和输入特殊字符相冲突.

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
C++
Stars
8k
Forks
806
PR merge metrics
No merged PRs in 30d

Description

当在方案中启用:
- {accept: space, send: space, when: has_menu}
- {accept: space, send: Escape, when: composing}
这两行后,可以用空格清除无效编码,比如五笔等形码。
在形码如五笔方案里面添加空格清屏功能之后,空格键能将无效编码清除。这样一来“/”引导的网址,大写什么的,比如/天气,就没有办法再上屏了。具体过程是:用户再按空格键,此时天气等特殊符号不能上屏,而是被清除。我的理解是小狼毫设置好空格清屏之后,空格键将/引导的特殊符号也视为无效编码,从而将其一并删除了。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the conflict with the two shown accept/send rules in a Wubi or other shape-based scheme, including an invalid code and a slash-prefixed input such as /天气. Trace the space-key handling for the has_menu and composing states; done means space can clear invalid codes without deleting or blocking slash-prefixed special input.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.