Skip to content
New issue

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

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

Already on GitHub? # to your account

(鼠须管)升级至0.16.1后tab键操作由移动拼音光标变为了向右移动选中候选词 #609

Closed
wx40217 opened this issue Feb 3, 2023 · 3 comments
Assignees
Labels

Comments

@wx40217
Copy link

wx40217 commented Feb 3, 2023

升级前tab可以在输入多个拼音时移动到第一个拼音的结尾 再按一下就往右移一个拼音
升级后tab就变成移动当前选中的候选词了
检查build里的default.yaml tab绑定的设置仍是Shift+Right
image

@widcardw
Copy link

widcardw commented Feb 4, 2023

我也遇到这个问题了,修改 default.custom.yaml 之后,快捷键配置是这样的,但是原本的按键映射现在不是那么适配了。

patch:
  key_binder/bindings:
    - { when: composing, accept: Control+p, send: Up }
    - { when: composing, accept: Control+n, send: Down }
    - { when: composing, accept: Control+b, send: Left }
    - { when: composing, accept: Control+f, send: Right }
    - { when: composing, accept: Control+a, send: Home } # 光标跳转至行首
    - { when: composing, accept: Control+e, send: End }  # 光标跳转至行尾
    - { when: composing, accept: Control+d, send: Delete }
    - { when: composing, accept: Control+k, send: Shift+Delete }

    - { when: composing, accept: ISO_Left_Tab, send: Shift+Left }
    - { when: composing, accept: Shift+Tab, send: Shift+Left }
    - { when: composing, accept: Tab, send: Shift+Right }
left-and-right.mp4

@widcardw
Copy link

widcardw commented Feb 4, 2023

这个问题在配置了 squirrel.custon.yaml 为下面的情况,即候选词横向排列时出现,如果是纵向排列,那么就不会出现这样的问题

patch:
  style:
    # 横向排列
    candidate_list_layout: linear  # 竖向排列需要删除本行
    text_orientation: horizontal
stacked.mp4

@lotem lotem self-assigned this Feb 4, 2023
@lotem lotem transferred this issue from rime/squirrel Feb 4, 2023
@lotem lotem changed the title 升级至0.16.1后tab键操作由移动拼音光标变为了向右移动选中候选词 (鼠须管)升级至0.16.1后tab键操作由移动拼音光标变为了向右移动选中候选词 Feb 4, 2023
@lotem
Copy link
Member

lotem commented Feb 4, 2023

最近一次重构 #603 造成的。一些情况下Shift+功能键会执行该功能键的动作。这里应严格匹配。

@lotem lotem added the bug label Feb 4, 2023
lotem added a commit to lotem/librime that referenced this issue Feb 5, 2023
Tab = Shift+Right should be skipped instead of treated as Right.

Fixes rime#609
@lotem lotem closed this as completed in 21adf97 Feb 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants