osfans / PRIME

Develop input methods for Windows easily with Python
Other
364 stars 23 forks source link

不能区分左右 Shift 键 #3

Open nicolas-yangli opened 7 years ago

nicolas-yangli commented 7 years ago

希望使用左右 shift 选择第 2, 3 候选字。配置文件 luna_pinyin.custom.yaml:

patch:
  key_binder/import_preset: default
  key_binder/bindings:
    - { when: composing, accept: "Shift_L", send: 2 }
    - { when: composing, accept: "Shift_R", send: 3 }

以前的鼠须管用的是 Shift+Shift_L, Shift+Shift_R, 不起作用,换成上面这个配置后,发现左右 shift 不能区分,如果第一次按的是左 shift, 那么接下来的右 shift 也会选择第 2 候选字; 反之亦然。

osfans commented 7 years ago

確實有這個問題

bennyyip commented 7 years ago

https://gist.github.com/lotem/2981316#file-default-custom-yaml-L5 是上游的问题