rime / weasel

【小狼毫】Rime for Windows
https://rime.im
GNU General Public License v3.0
4.17k stars 528 forks source link

feat: Caps_Lock binding available #1322

Closed fxliang closed 1 week ago

fxliang commented 2 weeks ago

example to binding Caps_Lock to 4 when has_menu, to select the 4th candidate

patch:
  # ensure key_binder is processed before ascii_composer
  engine/processors/@before 0: key_binder
  key_binder/bindings/+:
    # Caps_Lock selecting 4
    - { accept: Caps_Lock, send: 4, when: has_menu} 
    - { accept: Release+Caps_Lock, send: Release+4, when: has_menu}