Browse Source

docs(codes): improve macOS support data

Tested with Karabiner-EventViewer as well as some manual checks.

PR: #377
See: #375
xmkb
onebigdoor 4 years ago committed by GitHub
parent
commit
4c92a4e50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/docs/codes/_footnotes/macos-power.mdx
  2. 2
      docs/src/data/footnotes.js
  3. 90
      docs/src/data/hid.js

1
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.

2
docs/src/data/footnotes.js

@ -5,7 +5,9 @@
*/ */
import example from "@site/docs/codes/_footnotes/example.mdx"; import example from "@site/docs/codes/_footnotes/example.mdx";
import macosPower from "@site/docs/codes/_footnotes/macos-power.mdx";
export default { export default {
example, example,
macosPower,
}; };

90
docs/src/data/hid.js

@ -1371,7 +1371,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -1396,7 +1396,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2239,7 +2239,7 @@ export default [
windows: true, windows: true,
linux: true, linux: true,
android: true, android: true,
macos: true, macos: null,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2667,7 +2667,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2688,10 +2688,12 @@ export default [
windows: null, windows: null,
linux: false, linux: false,
android: true, android: true,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {
macos: ["macosPower"],
},
}, },
{ {
names: ["KP_EQUAL"], names: ["KP_EQUAL"],
@ -2730,7 +2732,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2751,7 +2753,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2772,7 +2774,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2793,7 +2795,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2814,7 +2816,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2835,7 +2837,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2856,7 +2858,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2877,7 +2879,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2898,7 +2900,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2919,7 +2921,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2940,7 +2942,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -2961,7 +2963,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4011,7 +4013,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4032,7 +4034,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4053,7 +4055,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4263,7 +4265,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4285,7 +4287,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4307,7 +4309,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4329,7 +4331,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4351,7 +4353,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4373,7 +4375,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4395,7 +4397,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4417,7 +4419,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4439,7 +4441,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4461,7 +4463,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4483,7 +4485,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4505,7 +4507,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4527,7 +4529,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4549,7 +4551,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4571,7 +4573,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4593,7 +4595,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4615,7 +4617,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4637,7 +4639,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4659,7 +4661,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4681,7 +4683,7 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: true, android: true,
macos: null, macos: false,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {},
@ -4702,10 +4704,12 @@ export default [
windows: null, windows: null,
linux: true, linux: true,
android: false, android: false,
macos: null, macos: true,
ios: null, ios: null,
}, },
footnotes: {}, footnotes: {
macos: ["macosPower"],
},
}, },
{ {
names: ["C_RESET"], names: ["C_RESET"],

Loading…
Cancel
Save