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 @@ @@ -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 @@ @@ -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,
};

90
docs/src/data/hid.js

@ -1371,7 +1371,7 @@ export default [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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 [ @@ -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"],

Loading…
Cancel
Save