rime / rime/weasel

英文模式下Shift+Space不等效于Space

Open
#424 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

个人习惯于使用Ctrl+Space切换中英文,所以把系统的输入法切换热键修改成了Ctrl+Shift+Space以防止冲突。然后在小狼毫里default.custom.ymal定义了使用Ctrl+Space切换中英文,并且禁用了Shift+Space键。配置如下:

  ascii_composer/good_old_caps_lock: true
  ascii_composer/switch_key:
    Shift_L: noop
    Shift_R: noop
    Control_L: noop
    Control_R: noop
    Caps_Lock: commit_code
    Eisu_toggle: clear
  key_binder/bindings:
    - { when: always, accept: Control+space, toggle: ascii_mode }
    - { when: always, accept: Shift+space, send: noop }
    - { when: has_menu, accept: minus, send: Page_Up }
    - { when: has_menu, accept: equal, send: Page_Down }   

然后发现Shift+space键按下没有反应,正常期望是等效于空格键按下。
所以我修改了上面Shift+Space的定义
- { when: always, accept: Shift+space, send: space }
现在中文模式下确实等效于space, 但是英文模式下依然没有反应。我不知道这是否是一个issue,还是我的配置有误。如果要任何时候Shift + Space都等效于Space该怎么做?

版本: 0.14.3
系统: Windows10

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

Start by reproducing the behavior on Windows 10 with the shown default.custom.ymal settings, testing Shift+Space in both Chinese and English modes. Inspect the key_binder bindings alongside ascii_composer/switch_key, then verify that the documented configuration makes Shift+Space produce a space in both modes.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.