From 7e0c95c8c676e1ab671a7dfb66c6381f2a55203b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 20 Jan 2024 23:45:52 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10218 --- .../20200924100950-9op5xi1.sy | 22 +++++++++---------- .../20200813004551-gm0pbn1.sy | 22 +++++++++---------- .../20211226122549-jktxego.sy | 22 +++++++++---------- app/src/constants.ts | 3 +-- 4 files changed, 34 insertions(+), 35 deletions(-) diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy index 530d9f423..86b1c57f8 100644 --- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy +++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy @@ -1330,7 +1330,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥1" + "TextMarkTextContent": "⌃1" }, { "Type": "NodeText", @@ -1378,7 +1378,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥2" + "TextMarkTextContent": "⌃2" }, { "Type": "NodeText", @@ -1426,7 +1426,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥3" + "TextMarkTextContent": "⌃3" }, { "Type": "NodeText", @@ -1474,7 +1474,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥4" + "TextMarkTextContent": "⌃4" }, { "Type": "NodeText", @@ -1522,7 +1522,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥5" + "TextMarkTextContent": "⌃5" }, { "Type": "NodeText", @@ -1570,7 +1570,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥6" + "TextMarkTextContent": "⌃6" }, { "Type": "NodeText", @@ -1618,7 +1618,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥7" + "TextMarkTextContent": "⌃7" }, { "Type": "NodeText", @@ -1666,7 +1666,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥8" + "TextMarkTextContent": "⌃8" }, { "Type": "NodeText", @@ -1714,7 +1714,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥9" + "TextMarkTextContent": "⌃9" }, { "Type": "NodeText", @@ -1762,7 +1762,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥0" + "TextMarkTextContent": "⌃0" }, { "Type": "NodeText", @@ -12526,4 +12526,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy index f79a529ae..1a63de308 100644 --- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy +++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy @@ -1328,7 +1328,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥1" + "TextMarkTextContent": "⌃1" }, { "Type": "NodeText", @@ -1376,7 +1376,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥2" + "TextMarkTextContent": "⌃2" }, { "Type": "NodeText", @@ -1424,7 +1424,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥3" + "TextMarkTextContent": "⌃3" }, { "Type": "NodeText", @@ -1472,7 +1472,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥4" + "TextMarkTextContent": "⌃4" }, { "Type": "NodeText", @@ -1520,7 +1520,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥5" + "TextMarkTextContent": "⌃5" }, { "Type": "NodeText", @@ -1568,7 +1568,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥6" + "TextMarkTextContent": "⌃6" }, { "Type": "NodeText", @@ -1616,7 +1616,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥7" + "TextMarkTextContent": "⌃7" }, { "Type": "NodeText", @@ -1664,7 +1664,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥8" + "TextMarkTextContent": "⌃8" }, { "Type": "NodeText", @@ -1712,7 +1712,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥9" + "TextMarkTextContent": "⌃9" }, { "Type": "NodeText", @@ -1760,7 +1760,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥0" + "TextMarkTextContent": "⌃0" }, { "Type": "NodeText", @@ -12540,4 +12540,4 @@ } } ] -} \ No newline at end of file +} diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy index 294f4d2fe..e760f6181 100644 --- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy +++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy @@ -1321,7 +1321,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥1" + "TextMarkTextContent": "⌃1" }, { "Type": "NodeText", @@ -1369,7 +1369,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥2" + "TextMarkTextContent": "⌃2" }, { "Type": "NodeText", @@ -1417,7 +1417,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥3" + "TextMarkTextContent": "⌃3" }, { "Type": "NodeText", @@ -1465,7 +1465,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥4" + "TextMarkTextContent": "⌃4" }, { "Type": "NodeText", @@ -1513,7 +1513,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥5" + "TextMarkTextContent": "⌃5" }, { "Type": "NodeText", @@ -1561,7 +1561,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥6" + "TextMarkTextContent": "⌃6" }, { "Type": "NodeText", @@ -1609,7 +1609,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥7" + "TextMarkTextContent": "⌃7" }, { "Type": "NodeText", @@ -1657,7 +1657,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥8" + "TextMarkTextContent": "⌃8" }, { "Type": "NodeText", @@ -1705,7 +1705,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥9" + "TextMarkTextContent": "⌃9" }, { "Type": "NodeText", @@ -1753,7 +1753,7 @@ { "Type": "NodeTextMark", "TextMarkType": "kbd", - "TextMarkTextContent": "⌥0" + "TextMarkTextContent": "⌃0" }, { "Type": "NodeText", @@ -13218,4 +13218,4 @@ } } ] -} \ No newline at end of file +} diff --git a/app/src/constants.ts b/app/src/constants.ts index 4b0176b44..042e84e5d 100644 --- a/app/src/constants.ts +++ b/app/src/constants.ts @@ -6,8 +6,7 @@ declare const NODE_ENV: string; const _SIYUAN_VERSION = SIYUAN_VERSION; const _NODE_ENV = NODE_ENV; -// const altNumber = navigator.platform.toUpperCase().indexOf("MAC") === -1 ? "⌃" : "⌥"; -const altNumber = "⌥"; +const altNumber = navigator.platform.toUpperCase().indexOf("MAC") > -1 ? "⌃" : "⌥"; export abstract class Constants { public static readonly SIYUAN_VERSION: string = _SIYUAN_VERSION;