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

[Bug] 触发 set_option ascii_mode 时无法通过配置 ascii_composer 直接上屏 #957

Closed
3 of 7 tasks
scturtle opened this issue Jul 3, 2024 · 1 comment
Closed
3 of 7 tasks

Comments

@scturtle
Copy link

scturtle commented Jul 3, 2024

簡要描述 Bug:

default.custom.yaml 配置:

patch:
  schema_list:
    - schema: double_pinyin
  ascii_composer/switch_key/+:
    Control+Shift+space: commit_code
  key_binder/bindings:
    - { when: always, accept: Control+space, unset_option: ascii_mode }
    - { when: always, accept: Control+Shift+space, set_option: ascii_mode }

当用中文输入若干字符之后:
image

用快捷键触发 set_option ascii_mode 切换到英文:
image

会保留 inline_preedit 状态,此时需要回车才会上屏:
image

且配置了 ascii_composer 中相同的快捷键也无效。

預期行爲:

可控制 set_option ascii_mode 时上屏。

實際行爲:

无法控制 set_option ascii_mode 时是否上屏,保留 inline_preedit 状态。

環境

  • 系統版本: (macOS 14.5)
  • 鼠鬚管版本: (1.0.2)
  • 方案: rime-rice + double_pinyin
  • 使用了 Lua: (用了甚麼 Lua 腳本?)
  • 與其它 App 有關: (哪個 App?)

我試過:

  • 我換了內置的方案(如朙月拼音)後問題仍存在
  • 我找到了導致問題出現的具體設置: (何設置?)
  • 這是個新 Bug,以前真的沒有
  • 我對原因有一些猜想: (你的寳貴想法)
  • 在 Issues(包括已關閉的 Issue) 中未找到相關的報告
@scturtle
Copy link
Author

scturtle commented Jul 4, 2024

看了下 librime 的代码,似乎是 AsciiComposer::ProcessKeyEvent 只识别特定按键序列才调用 ToggleAsciiModeWithKey

@scturtle scturtle closed this as completed Jul 4, 2024
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

1 participant