From 89b68f20e0ffe4e008aac71b73a06481b0bd21e3 Mon Sep 17 00:00:00 2001 From: caoyuhang Date: Tue, 1 Sep 2026 18:43:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Caps=20Lock=20=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=8D=E5=86=8D=E5=90=9E=E6=8E=89=E5=B7=B2?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=8B=BC=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ascii_composer.switch_key 的 Caps_Lock 由 clear 改为 commit_code。 librime 中 clear 对应 ctx->Clear(),会直接丢弃尚未上屏的拼音组合; commit_code 对应 ctx->ClearNonConfirmedComposition(); ctx->Commit(), 会把已输入的拼音原样提交为文本。之前配置为 clear 导致中文输入到一半 按 Caps 切换英文时,已经打出的字符直接消失,而不是像 macOS 原生输入法 那样原样落到输入框里。改为 commit_code 后行为与原生一致。 --- data/plum/default.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plum/default.yaml b/data/plum/default.yaml index 3b2f2a3..5126340 100644 --- a/data/plum/default.yaml +++ b/data/plum/default.yaml @@ -70,5 +70,5 @@ ascii_composer: Shift_R: commit_text Control_L: noop Control_R: noop - Caps_Lock: clear + Caps_Lock: commit_code Eisu_toggle: clear