zh_keyboard: make number pad symbol mode (#9654)

This PR makes zh_keyboard's number pad symbol mode instead of shift mode, so that numbers are shown when the keyboard is called expecting numeral input.
reviewable/pr9662/r1
weijiuqiao 2 years ago committed by GitHub
parent ac79da05f4
commit effddbc1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ Supports both simplified and traditional.
Characters hardcoded on keys are uniform, no translation needed.
In-place candidates can be turned off in keyboard settings.
A Separation key is used to finish inputting a character.
A Switch key is used to iterate candidates.
A Switch key is used to iterate candidates.
Stroke-wise deletion (input not finished) mapped to the default Del key.
Character-wise deletion mapped to north of Separation key.
@ -160,42 +160,40 @@ end
return {
min_layer = 1,
max_layer = 2,
shiftmode_keys = {["123"] = false},
symbolmode_keys = {["Sym"] = false},
max_layer = 4,
symbolmode_keys = {["123"] = true},
utf8mode_keys = {["🌐"] = true},
umlautmode_keys = {["Äéß"] = false}, -- Disabled 'umlaut' keys
keys = {
-- first row
{
{ label = "123" },
{ JA.s_1, { label = "", "", north="——"} },
{ JA.s_2, { label = "", ""} },
{ s_3, { label = "丿", ""} },
{ "", { label = "", "", north="——"}, "", JA.s_1 },
{ "", { label = "", ""}, "", JA.s_2 },
{ "", { label = "丿", ""}, "", s_3 },
{ label = "", bold = false } -- backspace
},
-- second row
{
{ label = "" },
{ JA.s_4, { label = "", "", north="" } },
{ JA.s_5, { label = "𠃋", "" } },
{ JA.s_6, { ime.separator, north=ime.local_del, alt_label=ime.local_del } },
{ "", { label = "", "", north="" }, "", JA.s_4 },
{ "", { label = "𠃋", "" }, "", JA.s_5 },
{ "", { ime.separator, north=ime.local_del, alt_label=ime.local_del }, "", JA.s_6 },
{ label = "" },
},
-- third row
{
{ label = "" },
{ JA.s_7, ime.switch_char },
{ s_8, comma_popup },
{ JA.s_9, period_popup },
{ "", ime.switch_char, "", JA.s_7 },
{ "", comma_popup, "", s_8 },
{ "", period_popup, "", JA.s_9 },
{ label = "" },
},
-- fourth row
{
{ label = "🌐" },
{ label = "空格", " ", " ", width = 2.0 },
{ JA.s_0, { label = "", W } },
{ label = "", "\n", "\n", bold = true }, -- return
{ label = "空格", " ", " ", " ", " ", width = 2.0 },
{ "", { label = "", W }, "", JA.s_0 },
{ label = "", "\n", "\n", "\n", "\n", bold = true }, -- return
},
},

Loading…
Cancel
Save