Skip to content

請問怎麼修改翻頁鍵又同時保留預設快捷鍵? #952

Answered by lotem
DDeenngg asked this question in Q&A
Discussion options

You must be logged in to vote

WIKI推薦的方式是在 輸入方案的 補丁裏定義 key_binder/bindings 列表:
https://github.com/rime/home/wiki/CustomizationGuide#%E4%BB%A5%E6%96%B9%E6%8B%AC%E8%99%9F%E9%8D%B5%E6%8F%9B%E9%A0%81

輸入法程序會先後加載 key_binder/import_preset 所指向的預設快捷鍵定義,以及輸入方案裏的快捷鍵定義。

如果一定要修改預設快捷鍵,例如有大量輸入方案都使用相同的快捷鍵設置,可以這樣追加預設快捷鍵:

# default.custom.yaml
patch:
  key_binder/bindings/+:
    - { when: paging, accept: bracketleft, send: Page_Up }
    - { when: has_menu, accept: bracketright, send: Page_Down }

@next 用來向列表末尾追加一個元素,用法如下:

patch:
  key_binder/bindings/@next: {when: composing, accept: Control+g, send: Escape}

參考: https://github.com/rime/home/wiki/Configuration

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DDeenngg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants