From 4c80136e575bd654ec80ea728d731ef57d88f2a3 Mon Sep 17 00:00:00 2001 From: amzxyz Date: Mon, 5 Jan 2026 10:58:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=80=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/wanxiang_pro.schema.yaml | 3 +-- lua/kp_number_processor.lua | 2 +- wanxiang.schema.yaml | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/custom/wanxiang_pro.schema.yaml b/custom/wanxiang_pro.schema.yaml index 00c5383..59488e3 100644 --- a/custom/wanxiang_pro.schema.yaml +++ b/custom/wanxiang_pro.schema.yaml @@ -139,8 +139,7 @@ charsetlist: [] charsetblacklist: [] # 给 kp_number_processor 用的小键盘模式,能自动读取recognizer下面正则与之功能对齐 -kp_number: - kp_number_mode: auto +kp_number_mode: auto #小键盘数字处理逻辑 # "compose" : 小键盘数字始终不上屏参与编码 # "auto" : 输入中 push,空闲时 commit(默认) diff --git a/lua/kp_number_processor.lua b/lua/kp_number_processor.lua index 3713920..78d9bb8 100644 --- a/lua/kp_number_processor.lua +++ b/lua/kp_number_processor.lua @@ -58,7 +58,7 @@ function P.init(env) local context = engine.context env.page_size = config:get_int("menu/page_size") or 6 - local m = config:get_string("kp_number/kp_number_mode") or "auto" + local m = config:get_string("kp_number_mode") or "auto" if m ~= "auto" and m ~= "compose" then m = "auto" end env.kp_mode = m diff --git a/wanxiang.schema.yaml b/wanxiang.schema.yaml index d6ee440..49f0c28 100644 --- a/wanxiang.schema.yaml +++ b/wanxiang.schema.yaml @@ -134,8 +134,7 @@ charsetlist: [] charsetblacklist: [] # 给 kp_number_processor 用的小键盘模式,能自动读取recognizer下面正则与之功能对齐 -kp_number: - kp_number_mode: auto +kp_number_mode: auto #小键盘数字处理逻辑 # "compose" : 小键盘数字始终不上屏参与编码 # "auto" : 输入中 push,空闲时 commit(默认)