From 470509ff92800aba00db7b48728a33c401226ac2 Mon Sep 17 00:00:00 2001 From: amzxyz Date: Sun, 4 Jan 2026 22:26:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E6=8C=89=E4=B8=8B=E4=BF=AE?= =?UTF-8?q?=E9=A5=B0=E9=94=AE=E7=9A=84=E6=97=B6=E5=80=99=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=99=A8=E4=BA=A4=E8=BF=98=E7=BB=99=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/kp_number_processor.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/kp_number_processor.lua b/lua/kp_number_processor.lua index 490e5ee..311a830 100644 --- a/lua/kp_number_processor.lua +++ b/lua/kp_number_processor.lua @@ -162,6 +162,9 @@ function P.func(key, env) ------------------------------------------------------------------ local kp_num = KP[key.keycode] if kp_num ~= nil then + if key:ctrl() or key:alt() or key:super() or key:shift() then + return wanxiang.RIME_PROCESS_RESULTS.kNoop + end local ch = tostring(kp_num) -- "0".."9" if is_function_code_after_digit(env, context, ch) then @@ -208,6 +211,9 @@ function P.func(key, env) local r = key:repr() or "" if r:match("^[0-9]$") then + if key:ctrl() or key:alt() or key:super() then + return wanxiang.RIME_PROCESS_RESULTS.kNoop + end -- 命令模式:只作为编码输入 if is_function_code_after_digit(env, context, r) then if context then