From 4c92a4e50f317227ac6b086be8cde137d5c1fc4e Mon Sep 17 00:00:00 2001 From: onebigdoor Date: Wed, 9 Dec 2020 08:58:24 -0500 Subject: [PATCH] docs(codes): improve macOS support data Tested with Karabiner-EventViewer as well as some manual checks. PR: #377 See: #375 --- docs/docs/codes/_footnotes/macos-power.mdx | 1 + docs/src/data/footnotes.js | 2 + docs/src/data/hid.js | 90 +++++++++++----------- 3 files changed, 50 insertions(+), 43 deletions(-) create mode 100644 docs/docs/codes/_footnotes/macos-power.mdx diff --git a/docs/docs/codes/_footnotes/macos-power.mdx b/docs/docs/codes/_footnotes/macos-power.mdx new file mode 100644 index 00000000..4cd83998 --- /dev/null +++ b/docs/docs/codes/_footnotes/macos-power.mdx @@ -0,0 +1 @@ +Both macOS power keys ignore quick presses, sleep on deliberate press, and display a prompt on long-press. diff --git a/docs/src/data/footnotes.js b/docs/src/data/footnotes.js index dabf98f5..29b6c032 100644 --- a/docs/src/data/footnotes.js +++ b/docs/src/data/footnotes.js @@ -5,7 +5,9 @@ */ import example from "@site/docs/codes/_footnotes/example.mdx"; +import macosPower from "@site/docs/codes/_footnotes/macos-power.mdx"; export default { example, + macosPower, }; diff --git a/docs/src/data/hid.js b/docs/src/data/hid.js index d52331f9..02887581 100644 --- a/docs/src/data/hid.js +++ b/docs/src/data/hid.js @@ -1371,7 +1371,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -1396,7 +1396,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2239,7 +2239,7 @@ export default [ windows: true, linux: true, android: true, - macos: true, + macos: null, ios: null, }, footnotes: {}, @@ -2667,7 +2667,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2688,10 +2688,12 @@ export default [ windows: null, linux: false, android: true, - macos: null, + macos: true, ios: null, }, - footnotes: {}, + footnotes: { + macos: ["macosPower"], + }, }, { names: ["KP_EQUAL"], @@ -2730,7 +2732,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2751,7 +2753,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2772,7 +2774,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2793,7 +2795,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2814,7 +2816,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2835,7 +2837,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2856,7 +2858,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2877,7 +2879,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2898,7 +2900,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2919,7 +2921,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2940,7 +2942,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -2961,7 +2963,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, footnotes: {}, @@ -4011,7 +4013,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4032,7 +4034,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4053,7 +4055,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4263,7 +4265,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4285,7 +4287,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4307,7 +4309,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4329,7 +4331,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4351,7 +4353,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4373,7 +4375,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4395,7 +4397,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4417,7 +4419,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4439,7 +4441,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4461,7 +4463,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4483,7 +4485,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4505,7 +4507,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4527,7 +4529,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4549,7 +4551,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4571,7 +4573,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4593,7 +4595,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4615,7 +4617,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4637,7 +4639,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4659,7 +4661,7 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4681,7 +4683,7 @@ export default [ windows: null, linux: true, android: true, - macos: null, + macos: false, ios: null, }, footnotes: {}, @@ -4702,10 +4704,12 @@ export default [ windows: null, linux: true, android: false, - macos: null, + macos: true, ios: null, }, - footnotes: {}, + footnotes: { + macos: ["macosPower"], + }, }, { names: ["C_RESET"],