Skip to content

Commit 4f7bf4b

Browse files
committed
改行列10鍵位
1 parent 08eb1c8 commit 4f7bf4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rimefiles/lua/processor_array10_and_bpmf_mix.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ local function processor(key, env)
4848
local key_num_array10 = key:repr():match("KP_([0-9])") or key:repr():match("KP_(Decimal)")
4949
-- local key_bpmf = set_char[ascii_c(key, "a-z")]
5050
--------
51+
-- local seg_punct = seg:has_tag("punct")
5152
local seg_abc = seg:has_tag("abc")
52-
local seg_punct = seg:has_tag("punct")
5353
local seg_shadow_top = seg:has_tag("shadow_top")
5454
local seg_reverse2_lookup = seg:has_tag("reverse2_lookup")
5555
local seg_reverse3_lookup = seg:has_tag("reverse3_lookup")
@@ -128,7 +128,8 @@ local function processor(key, env)
128128
以下針對功能:使英文鍵盤和數字鍵盤兩邊輸入會轉換,不互相影響。
129129
--]]
130130

131-
elseif key_num_array10 and (seg_abc or seg_punct or seg_reverse2_lookup) then
131+
-- elseif key_num_array10 and (seg_abc or seg_punct or seg_reverse2_lookup) then
132+
elseif key_num_array10 and not seg_shadow_top and context:is_composing() then
132133
context:push_input("```")
133134
return 2
134135

0 commit comments

Comments
 (0)