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

Loading…
Cancel
Save