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

开关中使用options设置多套字符集过滤,请问在key_binder里面应该怎么配置快捷键? #14

Open
imtinge opened this issue Nov 29, 2021 · 3 comments

Comments

@imtinge
Copy link

imtinge commented Nov 29, 2021

开关中使用options设置多套字符集过滤,请问在key_binder里面应该怎么快捷键?

……
switches:
  - name: ascii_mode
    reset: 0
    states: [ 中文, 西文 ]
  - name: full_shape
    states: [ 半角, 全角 ]
  - options: [ gb2312, gbk, utf-8 ]
    states:
      - 字集 → GB2312
      - 字集 → GBK
      - 字集 → UTF-8
    reset: 0
……
  filters:
    - charset_filter@gb2312
    - charset_filter@gbk
    - charset_filter@utf-8
……
key_binder:
  import_preset: default
  bindings:
    - {accept: semicolon, send: 2, when: has_menu}
    - {accept: apostrophe, send: 3, when: has_menu}
    - {accept: Control+Shift+g, toggle: gbk, when: always}

这样写在schema文件中无效,请问应该如何设置,谢谢

@imtinge
Copy link
Author

imtinge commented Nov 29, 2021

尝试

- {accept: Control+Shift+g, toggle: charset_filter@gbk, when: always}

也无效

@LEOYoon-Tsaw
Copy link
Owner

試試toggle換set

@imtinge
Copy link
Author

imtinge commented Nov 29, 2021

换set没有效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants