squirrel
squirrel copied to clipboard
Mac版本Chrome 中英文轉換問題
其實跟下面這個問題一樣, 不過我的問題在Chrome. 我用的是M1 , Mac OS 12.4
https://github.com/rime/squirrel/issues/398
一樣是習慣用 Ctrl-space 轉換中英文, 所以用以下setting
ascii_composer/switch_key: Shift_L: noop
key_binder/bindings: - {accept: "Control+space", toggle: ascii_mode, when: always}
switches:
- name: ascii_mode reset: 0
大部份app 都沒有問題, 就在Chrome 裡面, 不能用Control- space 轉做中文.
要能做到輸入中文, 一定要先 把 ascii_composer/switch_key/Shift_L: noop 去掉。先在language bar切換到Squirrel 之後, 然後需要按一下L-Shift才能切換到中文輸入狀態. CTRL-Space 是完全沒有反應.
我看過上面的post, 不過是關於VScode 的workaround. Chrome 請問是怎樣處理? 謝謝
做了一些測試
下面用CTRL Shift space 可以在chrome 上面轉中文 key_binder/bindings:
- {accept: "Control+Shift+space", toggle: ascii_mode, when: always}
下面這個Control Space, 就只可以用在其他app 像Textedit 或者Safari , 不過chrome 不會轉做中文 key_binder/bindings:
- {accept: "Control+space", toggle: ascii_mode, when: always}
等等 Control+space 在 macOS 中是切换输入的全局快捷键哪……
Control+space
在各种操作系统和软件种有已有定义,可能比输入法优先级还高。
Shift+space
冲突比较少。我现在额外启用了这么一套快捷键:
https://github.com/rime/rime-prelude/blob/dd84abecc33f0b05469f1d744e32d2b60b3529e3/key_bindings.yaml#L60
Control+space
是系統默認的輸入法切換快捷鍵,一般app都會避開使用的。估計是chrome的某個插件佔用了。去chrome://extensions/shortcuts裏找找吧